|
|
Submitting Forms
Submitting Forms
Now you know how to construct your form, how do you get it to the script processing it? This is done through the
method="" and action="" attributes of the form. The methods you can use are:
action="login.php". Here's an example login form (with a button instead of submit, because the form points at a script that doesn't exist!).
<form name="login" method="POST" action="login.php">
<input type="text" name="username" value="Username" size="20" /> <br />
<input type="password" name="password" value="" size="20" /> <br />
<input type="button" value="Log In">
</form>
In our PHP tutorials, we'll look at how this data is received by the script and how to process it
Page Responses
Currently there have been no responses to this page...
If you have anything to contribute to this tutorial, found a bug, or know a better way of achieving the same goal, please leave your response below.
|