[PHP-WIN] Re: Form Problem
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: --- application_name Username Password Save login via cookies so I don't have to login next time> "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 > > > > include("newsconf.php3"); > > while (list($name, $value) = each($HTTP_POST_VARS)) { > > echo "$name = $value\n"; > > } > > if (isset($submit)) { > mysql_query("INSERT INTO $ntable VALUES > ('','$title','$posted_by','$entry',NULL)"); > > print("$title\n"); > print("Posted by $posted_by\n"); > print("$entry\n"); > } > > else { > print("\n"); > > $result = mysql_query("select name from $ptable") >or die("Query broke!\n"); > print("Posted By : \n"); > while ($row = mysql_fetch_array($result)) { > $name=$row["name"]; > print("$name\n"); > } > print("\n"); > ?> > Title : > News : > > > > > exit; > } > ?> > > > > > > > > > -- > 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-WIN] Re: Form Problem
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: > > -- -- > --- > application_name > > > > > > > > Username > > Password > > Save > login via cookies so I don't have to login next time> > > > > > > > > -- -- > > "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 > > > > > > > > > include("newsconf.php3"); > > > > while (list($name, $value) = each($HTTP_POST_VARS)) { > > > > echo "$name = $value\n"; > > > > } > > > > if (isset($submit)) { > > mysql_query("INSERT INTO $ntable VALUES > > ('','$title','$posted_by','$entry',NULL)"); > > > > print("$title\n"); > > print("Posted by $posted_by\n"); > > print("$entry\n"); > > } > > > > else { > > print("\n"); > > > > $result = mysql_query("select name from $ptable") > >or die("Query broke!\n"); > > print("Posted By : \n"); > > while ($row = mysql_fetch_array($result)) { > > $name=$row["name"]; > > print("$name\n"); > > } > > print("\n"); > > ?> > > Title : > > News : > > > > > > > > > > > exit; > > } > > ?> > > > > > > > > > > > > > > > > > > -- > > 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
[PHP-WIN] Re: Installing on Apache 2 with PHP
I am running a similar configuration. My httpd.conf contains: LoadModule php4_module E:/PHP-4.2.1-Win32/sapi/php4apache2.dll AddType application/x-httpd-php .php AddType application/x-httpd-php .php Obviously, your path to php4apache2.dll will be different. Good luck, Fester "Ben Davis" <[EMAIL PROTECTED]> wrote in message 001a01c20fd5$dfe9b000$0101a8c0@BenDavis">news:001a01c20fd5$dfe9b000$0101a8c0@BenDavis... Does anyone know what directives to put in the httpd.conf file so that you can run PHP. The LoadModule appears to no longer work in Apache2. I am trying to install PHP 4.2.1 onto Apache 2.0.36 on Windows 2000. Apache2 is currently setup correctly and I have PHP installed, I just need to know what line to put in the httpd.conf file. Thanks Ben Davis www.davisben.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PHP 4.2.1 And WinXP
This seems to be a common theme for PHP4.2.1. I'm running on Win2k and seeing the same problem, as is another poster (see: "Form Problem".) Given that several people are seeing the same thing, it does seem to indicate a problem with PHP 4.2.1 and not our individual installations. I hope that someone can contribute an answer to this. Regards, Fester "Gonik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Recently i needed to format my HDD, because of some problems.. > When I reinstalled WinXP Pro (and IIS of course) i had a problem with PHP > output.. > > I'm working on a forum developing latelly and when I try to post a new message > to the database (mysql) nothing happens! It's like that the form variables doesn't parse.. > But this happens only in some applications I have! eg. phpMyAdmin, phpBB2 and some > other apps are working great and some others don't :( > > What do you suggest? Any advises are welcome! > > PS. When I upload the forum on a host it works! > > -- > 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-WIN] Re: Re: PHP 4.2.1 And WinXP
Thank you very much. I see that I must access variables using $_POST['var'] syntax. I'm disappointed that variable access appears not to be backward compatible to earlier versions fo PHP, but such is life. Thank you again, Fester "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message news:ae1qqm$so8$[EMAIL PROTECTED]... > Monday, June 10, 2002, 12:57:49 PM, you wrote: > > > This seems to be a common theme for PHP4.2.1. I'm running on Win2k and > > seeing the same problem, as is another poster (see: "Form Problem".) Given > > that several people are seeing the same thing, it does seem to indicate a > > problem with PHP 4.2.1 and not our individual installations. I hope that > > someone can contribute an answer to this. > > It is not a problem with PHP. Please read the release notes for the software > you have installed (http://www.php.net/release_4_2_1.php) and pay specific > attention to the 'External variables' section. If you still don't understand > what is going on after that, feel free to let me know. > > -- > Stuart > > > -- > 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-WIN] Re: Re: Re: PHP 4.2.1 And WinXP
"Stuart Dallas" <[EMAIL PROTECTED]> wrote in message news:ae3dq7$50l$[EMAIL PROTECTED]... > On Tuesday, June 11, 2002 at 3:39:21 AM, you wrote: > > Thank you very much. I see that I must access variables using $_POST['var'] > > syntax. I'm disappointed that variable access appears not to be backward > > compatible to earlier versions fo PHP, but such is life. > > It is. If you've read the notes linked from the release note you'll know that > if you turn register_globals on in php.ini then the variables will be > registered in global scope as they were in previous versions. That is what I tried to do initially (I had read the note). It seems to not have worked, though. > -- > Stuart > > > -- > 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