I think I know what can be causing it. Maybe on your "local" config you have register_globals turned on, and on the other (Red Hat) they are turned off.
Try: if ($_GET['submit_login'] <> "") or if ($_POST['submit_login'] <> "") depending on the method you're using to send the data to the Red Hat server. Tell us if that works. -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -----Original Message----- > From: Arijit Chaudhuri [mailto:[EMAIL PROTECTED] > Sent: Jueves, 06 de Marzo de 2003 01:02 p.m. > To: Barajas, Arturo > Subject: RE: [PHP] Pages refresh on submission on RedHat Server - POST > problem > > > Tried using a hidden field named form_submitted with a value Y. Even > checking for that does not help. Checked the same file on my > server and it > works fine. > > Regards, > Arijit > > -----Original Message----- > From: Barajas, Arturo [mailto:[EMAIL PROTECTED] > Sent: Friday, March 07, 2003 12:05 AM > To: 'Arijit Chaudhuri' > Subject: RE: [PHP] Pages refresh on submission on RedHat Server - POST > problem > > > Arijit, > > Are you clicking on the button or pressing <Enter> on a field > to send the > data? > > AFAIK, if you click, it will set the var. If you just press > <Enter>, it will > submit the form, but won't set the var. I personally use a > hidden var, and I > check for that one. > > HTH. > -- > Un gran saludo/Big regards... > Arturo Barajas, IT/Systems PPG MX (SJDR) > (427) 271-9918, x448 > > > -----Original Message----- > > From: Arijit Chaudhuri [mailto:[EMAIL PROTECTED] > > Sent: Jueves, 06 de Marzo de 2003 11:57 a.m. > > To: [EMAIL PROTECTED] > > Subject: [PHP] Pages refresh on submission on RedHat Server - POST > > problem > > > > > > Its a rather strange thing. I tested all my pages on my > Win2000-Apache > > configuration and uploaded them to my clients RedHat > server. There, on > > submission, all pages just refresh themselves. All my forms > are set to > > submit to the same page and I check in the beginning for the > > submit button > > variable. If its set, the form data is processed - else its > > assumed that its > > the first time that the page is being viewed. > > > > I loaded the pages on another RedHat server and all pages > > work perfectly > > there. > > > > I experimented a bit and found that if I change the action of > > forms to GET, > > they work. But with passwords and file uploads, I cant do > that for all > > pages. > > > > Have tried $HTTP_POST_VARS also - doesnt work. > > > > Any idea of what could be the problem? If the submit button is named > > "submit_login", I am checking as follows: > > if ($submit_login <> "") > > to see if the form has been submitted. Hve tried isset also. > > > > Thanks, > > Arijit > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php