<?php require('config.php'); ?> <html> <head> <title>Mailing List Signup</title> </head> <body> <form method="post" action="user_transact.php"> <p> Sign up for Mailing List:<br /> </p> <?php conn); if (isset(uid = sql = "SELECT * FROM ml_users WHERE user_id = 'result = mysql_query(result)) { result); row['email']; } else { email = ""; } ?> <p> E-mail Address:<br /> <input type="text" name="email" size="40" value="<?php echo </p> <p> If you aren't currently a member, please provide your name:<br /><br /> First Name:<br /> <input type="text" name="firstname" /><br /> Last Name:<br /> <input type="text" name="lastname" /><br /> </p> <p> Select the mailing lists you want to receive:<br /> <select name="ml_id"> <?php result = mysql_query("SELECT * FROM ml_lists ORDER BY listname") or die('Invalid query: ' . mysql_error()); while (result)) { echo " <option value=\"" . row['listname'] . "</option>\n"; } ?> </select> </p> <p> <input type="submit" name="action" value="Subscribe" /> </p> </form> </body> </html>
(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.