Some further details. My server config is: Apache/2.0.36 (Win32) DAV/2 PHP/4.2.1
Thanx again, Fester "Fester" <[EMAIL PROTECTED]> wrote in message advn6h$9bi$[EMAIL PROTECTED]">news:advn6h$9bi$[EMAIL PROTECTED]... > Hi, > > I am having the same problem, and can reproduce it with a simple test > script. When a user name and password are entered, the phpinfo output shows > that it is a POST method with an empty _SERVER[argv] array. I have verified > that register_globals is set to "on" in my php.ini. My test program looks > like this: > > -------------------------------------------------------------------------- -- > --- > <HTML><HEAD><TITLE>application_name</TITLE></HEAD> > > <BODY> > <?php echo "login = $login" ?> > > <FORM NAME="login_form" ACTION="test.php" METHOD="POST"> > > <TABLE BORDER=0> > <TR><TD><B>Username</B></TD> > <TD><INPUT NAME="login" SIZE=10 VALUE="" TABINDEX="1"></TD></TR> > <TR><TD><B>Password</B></TD> > <TD><INPUT NAME="password" TYPE="password" SIZE=10 TABINDEX="2"></TD></TR> > <TR><TD COLSPAN=2><INPUT TYPE="checkbox" NAME="remember" VALUE="yes">Save > login via cookies so I don't have to login next time></TD></TR> > <TR><TD COLSPAN=2><INPUT TYPE="submit" VALUE="Login" TABINDEX="3"></TD></TR> > </TABLE> > > <? phpinfo(); ?> > > </FORM></BODY></HTML> > > -------------------------------------------------------------------------- -- > -------- > "Ilker Cetinkaya" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > it seems as if register_globals option is turned off and therefore $submit > > is not set. > > > > hth > > ilker > > > > > > "James Meers" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > > > I have this form and its just not picking up the submit > > variable however it is posting them!!! > > > > Can someone double check this, what have i done? > > > > James > > > > <html> > > <body> > > <?php > > include("newsconf.php3"); > > > > while (list($name, $value) = each($HTTP_POST_VARS)) { > > > > echo "$name = $value<br>\n"; > > > > } > > > > if (isset($submit)) { > > mysql_query("INSERT INTO $ntable VALUES > > ('','$title','$posted_by','$entry',NULL)"); > > > > print("$title<br>\n"); > > print("Posted by $posted_by<br>\n"); > > print("$entry\n"); > > } > > > > else { > > print("<form action=\"addnews.php3\" method=post>\n"); > > > > $result = mysql_query("select name from $ptable") > > or die("Query broke!<br>\n"); > > print("Posted By : <SELECT name=\"posted_by\">\n"); > > while ($row = mysql_fetch_array($result)) { > > $name=$row["name"]; > > print("<OPTION value=\"$name\">$name\n"); > > } > > print("</SELECT><br>\n"); > > ?> > > Title : <input type="Text" name="title" size=50><br> > > News :<br> > > <textarea rows=20 cols=80 name="entry"></textarea> > > <p> > > <input type="Submit" value="submit" name="submit"> > > </form> > > <?php > > exit; > > } > > ?> > > > > > > </body> > > </html> > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php