topical media & game development
basic-php-14-user.php / php
<?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
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.