You are here: Re: How do you get variable to the other side of a script « PHP Programming Language « IT news, forums, messages
Re: How do you get variable to the other side of a script

Posted by Pedro Graca on 01/19/06 20:17

pete horm wrote:
> Index.html Login Page-//Usernames on MySQL -->
>
> trylogon.php-//Use $POST for Usernames and Passwords authenticates then
> opens -->
>
> Form.php-//Submit service request to MySQL -->
>
> Add.php-//Adds info to the database, prints confirmation page.
>
> This is all working fine. The one problem is that the "Form.php" page
> makes them enter their Username again in the form. Users would like it to
> automatically populate that with the Username they plugged into the Login
> page. I don't know how to go about this?
<snip>

Try replacing your

<input type="text" name="username">

with

<input type="text" name="username" value="<?php echo $username; ?>">

--
If you're posting through Google read <http://cfaj.freeshell.org/google>

 

Navigation:

[Reply to this 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

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