Re: Form Problem
| From: | Fester | Date: | Mon, 10 Jun 2002 04:15:56 +0000 |
| Subject: | Re: Form Problem | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14144@lists.php.net to get a copy of this message | ||
Some further details. My server config is: Apache/2.0.36 (Win32) DAV/2
PHP/4.2.1
Thanx again,
Fester
"Fester" <gmane@ladsplace.net> wrote in message
news:advn6h$9bi$1@main.gmane.org...
> 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" <ilker.cetinkaya@ease.de> wrote in message
> news:20020606151824.44753.qmail@pb1.pair.com...
> > it seems as if register_globals option is turned off and therefore
$submit
> > is not set.
> >
> > hth
> > ilker
> >
> >
> > "James Meers" <jambo@venda.com> wrote in message
> >
> > news:2BA3903C0E9C284F9AA18B2E123CF5ED1D1FEF@VENDAC01.uk.venda...
> > 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
>
>