Posted by J.O. Aho on 12/18/05 02:15
number1.email@gmail.com wrote:
> Thanks Aho...that works great.
>
> One more question. To test this out, I have at the start of the
> index2.php code:
>
> <FORM action="index.php?username=123" method="post"><BR>
>
> and when I click on the Submit control is passed to index.php, and the
> username is displayed as "123" (to be expected as it is hardcoded).
>
> How do I make this value of "123" generic so that it will accept the
> $username variable? I have a couple of ideas, but not sure which way
> is suitable.
<form action="index.php" method="post">
<!-- name is set to the variable name that we want to send to the php -->
<input type="text" name="username">
<!-- value will be the text on the submit button -->
<input type="submit" value="LogIn!">
</form>
//Aho
Navigation:
[Reply to this message]
|