DeveloperSide.NET Forums
July 09, 2020, 10:08:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Can't get PHP to POST with 'Submit' button  (Read 6781 times)
0 Members and 1 Guest are viewing this topic.
Posts: 6

View Profile
« on: December 06, 2003, 07:20:14 AM »

Here is a snippet of code which fails:

<form action="register.php" method="POST">
<tr><th align=right>Name:</th>
<td><input type="text" size=30 maxlength=80 name="name"></input></td></tr>
<input type="submit" align=left name="submit" value="Submit"></input></td></tr>

register.php is simply
isset( $name  ) or die( "Die; name not set.");

It takes the 'die' branch.  The string I type into the 'name' text input in the first program ought to show up in the register.php script, shouldn't it?  I can't make it get there.

Note that I was fastidious about quoting strings and putting end tags with  tags, just in case IE 6.0 is adhering to HTML 4.1 which requires those things to be done without fail.  Doesn't help.

Curtis Lacy
« Reply #1 on: December 07, 2003, 08:00:41 AM »

You are accessing that POST variable wrong.
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!