Try the PHP documentation, see if it helps. If not, come back with a tiny bit more detail. The fact that `lastname' and `submit' are both being passed to the next page is correct, you're not seeing things. $submit is just another variable in the world of PHP.
http://www.php.net/manual/en/language.variables.external.php chris -----Original Message----- From: Matthew Crouch [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:59 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] what the heck? update I changed method to GET and the value of $lastname seems to be getting passed but so is $submit, with the value "Search for Last Name" as you might expect. Probably this ain't the answer Matthew Crouch wrote: > this bit from my index page is giving me 2 headaches: > 1. it isn't passing anything into the URL > 2. the page that gets called ("name.php") sits and tries to load > forever. it looks like it's even filling up my hard drive with data > (?!) > > Note: it does this (#2) even if I type in the URL with a variable and > value, like "name.php?lastname=smith" > > <? > printf ("<form method=\"post\" action=\"name.php?lastname=%s\">", > $lastname); > ?> > <div align="center"> > <input type="Text" name="lastname" size="75"> > <input type="Submit" name="submit" value="Search for Last Name"> > </div> > </form> > </div> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - - This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.