|
Im not too sure about how to do this, but it deffinately be best to use php and mysql databasing. I have a code here. Dont know if it will help you but...
The most important thing to notice when dealing with HTML forms and PHP is that any form element in an HTML page will automatically be available to your PHP scripts.
Look at the following example of an HTML form:
<html>
<body><form action="welcome.php" method="POST">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form></body>
</html>
The example HTML page above contains two input fields and a submit button. When the user fills in this form and hits the submit button, the "welcome.php" file is called.
The "welcome.php" file looks like this:
<html>
<body>Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!</body>
</html>
A sample output of the above script may be:
Welcome John.
You are 28 years old!
Here is how it works: The $_POST["name"] and $_POST["age"] variables are automatically set for you by PHP. The $_POST contains all POST data.
Note: If the method attribute of the form is GET, then the form information will be set in $_GET instead of $_POST.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|