basic-php-13-compose.php / php
<?php require_once 'conn.php'; body = ''; authorid = ''; if (isset(_GET['a'] == 'edit' and isset(_GET['article']) { _GET['article']; sql, row = mysql_fetch_array(title = body = article = authorid = <form method="post" action=<transact-article.php>> <h2>Compose Article</h2> <p> Title:<br> <input type="text" class="title" name="title" maxlength="255" value="<?php echo htmlspecialchars(title); ?>"> </p> <p> Body:<br> <textarea class="body" name="body" rows="10" cols="60"><?php echo htmlspecialchars(</textarea> </p> <p> <?php echo '<input type="hidden" name="article" value="' . article . "\">\n"; if (<input type="hidden" name="authorid" value="' . authorid . "\">\n"; } if (<input type="submit" class="submit" name="action" ' . "value=\"Save Changes\">\n"; } else { echo '<input type="submit" class="submit" name="action" ' . "value=\"Submit New Article\">\n"; } ?> </p> </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.