That's right, you would want to use a server-side language. And, you would want to use PHP. I'm not exactly sure what you mean by 'login page' and 'registration page', but you will want to use some code similar to this:
PHP Code:
<?php $database = "emails.txt"; $file = fopen($database, "a+"); $size = filesize($database); $name = $_POST['name']; $email = $_POST['email']; if($_POST['submit']) fwrite($file, "\"$name\" <$email>,"); ?>
Put all of that into a page with a .php extension. Put this following code into that same file:
HTML Code:
<form method="post">
Name: <input type="text" name="name" size="20"><br />
Email: <input type="text" name="email" size="20"><br /><br />
<input type="submit" value="Subscribe" name="submit">
</form>
Then create a .txt file with the name of "emails.txt". What all this code is doing is processing the information put through the form, and then sending the user's info into the emails.txt file. If you play around, you will see that the code is extremely easy to modify.
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
|