|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-29 11:57 UTC] zdoorduy at xs4all dot nl
[2000-05-29 12:15 UTC] zdoorduy at xs4all dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 17:00:01 2025 UTC |
System: PIII 550, Win2K Prof. 128 mb. IIS5, MySQL shareware 3.22.34, PHP 4.0rc2 After a form submit through either a get or post, the form variables are empty. form: <form action=submitform.php method=GET> First Name: <input type=text name=first_name size=25 maxlength=25> Last Name: <input type=text name=last_name size=25 maxlength=25> <p> <input type=submit> </form> and submitform.php contains: <?php mysql_connect ('10.1. . ', '', ''); mysql_select_db (testbase); mysql_query ("INSERT INTO names (first_name, last_name) VALUES ('$first_name', '$last_name') "); print ($first_name); print (" "); print ($last_name); print ("<p>"); print ("Thanks for submitting your name."); ?>