RE: [PHP] HTML form online

From: Date: Fri, 19 Nov 2004 20:01:13 +0000
Subject: RE: [PHP] HTML form online
Groups: php.general 
Request: Send a blank email to php-general+get-202535@lists.php.net to get a copy of this message
Sure, get whatever data you need into variables and just do something like this: <? $firstname = "Trevor"; $lastname = "Gryffyn"; $company = "Air Cargo Inc"; ?> <html> <head><title></title></head> <body> <form action="process.php" method=POST> First Name: <input type=text name="firstname" value="<?$firstname?>"><br> Last Name: <input type=text name="lastname" value="<?$lastname?>"><br> Company: <input type=text name="company" value="<?$company?>"><br> <input type=submit value="Submit"> </form> </body> </html> Basic HTML form pre-population, but using PHP variables. Makes it nice and dynamic, good for pre-populating query data that's already been run (searches and such) so the user can modify what they just did instead of re-typing it all. -TG > -----Original Message----- > From: Jerry Swanson [mailto:pmysql@gmail.com] > Sent: Friday, November 19, 2004 2:40 PM > To: PHP List > Subject: [PHP] HTML form online > > > I want to write php script that fill out HTML form online. Any ideas > how to do it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#202535) next »