basic-php-16-editforum.php / php
<?php if (isset(action = "Edit"; } else { pageTitle = "forum = 0; fdesc = ''; userid = 0; if (isset(forum = sql = "SELECT forum_name, forum_desc, u.name, u.id " . "FROM forum_forum f " . "LEFT JOIN forum_users u " . "ON f.forum_moderator = u.id " . "WHERE f.id = result = mysql_query(row = mysql_fetch_array(fname = fdesc = fmod = userid = <h2>action forum</h2>"; ?> <form name="forumedit" action=<transact-admin.php> method="post"> <table class="forumtable" cellspacing="0"> <tr><th colspan="2">General Forum Settings</th></tr> <tr> <td>Forum Name</td> <td> <input type="text" name="forumname" value="<?php echo </td> </tr> <tr> <td>Forum Description</td> <td> <input type="text" name="forumdesc" size="75" value="<?php echo fdesc; ?>"> </td> </tr> <tr> <td>Forum Moderator</td> <td> <select id="moderator" name="forummod[]"> <option value="0">unmoderated</option> <?php result = mysql_query(row = mysql_fetch_array(<option value=\"" . row['id'] . "\""; if (row['id']) echo " selected='selected'"; echo ">" . </option>"; } ?> </select> </td> </tr> <tr> <td colspan="2"> <input class="submit" type="submit" name="action" value="<?php echo action; ?> Forum"> </td> </tr> </table> <input type="hidden" name="forum_id" value="<?php echo </form> <?php require_once 'footer.php'; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.