Reply to Re: Simple Problem? ... Please Advise ...

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация