Forum Moderators: coopster

Message Too Old, No Replies

FORMS Nolonger WORK!

         

PSWorx

11:40 am on Dec 13, 2005 (gmt 0)

10+ Year Member



Ok for somereason and ive spent the past 6 hours trying to find out why:

When i use any of a limited number of form buttons within the admin area of my site all forms are renderd useless:

Meaning, when i for instance view products by category, results are displayed, but then i go to add a category, then nothing happens (normaly i would be able to add a category)

What i think it is:

Seems like the forms are no longer POSTing their data so my scripts no longer go thru the required routines for the given POST data

Note:

Everything worked fine locally on the dev machine setup currently running:

Apache/2.0.54 (Win32) PHP/5.0.4

with some other bits and bats

The problem has arose since uploading to the clients chosen lycos hosting package (small business i belive this to be)

NOTE2:

When i log out of the site and back in again the issue seems to be reset until i submit one of the "problematic" forms

Any HELP would be great

dmorison

12:04 pm on Dec 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If forms have stopped working after moving to a different host that could indicate that your script is relying on PHP's "Register Globals" setting to automatically import variables from $_GET, $_POST etc. Have a look at the following page.

[uk.php.net...]

If your code is using, for example, the posted variable $category, but nowhere in your script have you actually referred to $_POST["category"] then this is almost certainly where your problem lies.

PSWorx

12:15 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



Ive made sure to use the $_POST['var'] array when accessing them, i cant remember if im allowed to link in here or not, or even an email, really need someone to take a peek at this and asses the situation, just uploading to a different server to test my project there, if it works them im assuming its down to a version miss match with PHP will post back soon

THANKS

PSWorx

12:26 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



Ok so i upload to a friends server and everythings back to normal, other than the image upload and resize script that fails dude to directy access settings that i cant seem to change - BAH

So the problem is lycos or more so a PHP version miss match as thats the only thing i can signle out in within this situation, although the symptoms seem pretty rediculous...

Why would the forms no long send POST DATA or more so why arnt my scripts responding to the POST DATA regardless of which method i access the trigger $trigger $_POST['trigger']

Are there any other fail safe methods for accessing the POST DATA?

Anyone...

LOL (Not a laughing matter...)

PSWorx

1:34 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



Hmm, when the buttons become broken its asif the scripts exiting before its even got to the if statement checking for the POST data, ive tried placing various echo statements here there and everywhere around the IF check statement and if never gets past the IF statement as to say the $_POST['data'] is not set...

I noticed that the lycos host are using:

PHP4u Version 3.0
Based on PHP-4.3.10

Which seems to ring a few alarm bells?

Sucessfully tested it on the following versions

Apache/2.0.52 (CentOS) / PHP Version 4.3.9
and
Apache/2.0.54 (Win32) PHP/5.0.4

Anyone, any help, please....

whoisgregg

4:03 pm on Dec 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are there any redirects occuring? Like, does the form action="" point to the "www.domain.tld" but the request gets redirected to the "domain.tld?"

PSWorx

4:25 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



No redirects taking place, will provide code in a few hours if no joy soon altho will probs show up as on big mess as unsure how to display with the raw formatting...

Also one set of forms do work on that particular page its the ones that follow which cause the problem, its somewhat complicated n ive been at it all night so when ive had a rest ill get something down in detail, that is if i dont rewrite it to suit the lycos server, altho i dont see the need as it works fine on other servers remote and local

TIA

whoisgregg

4:28 pm on Dec 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For the forms that don't work, what do you get when you
print_r($_POST)
? Is the array completely empty?

PSWorx

7:00 pm on Dec 13, 2005 (gmt 0)

10+ Year Member



Ill let you know after ive had some sleep but i assure you the site or rather area in question works on other server setups and versions of php, its just lycos as far as im concerned but will check later...

Oh, i actually did a check for the posting of VARS from the form/s but wasnt getting anything back, ill upload the same site to two different remote locations, 1 lycos, the other a friends server aswell as run it locally and show the results here for the array of POST vars...

whoisgregg

9:15 pm on Dec 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's not necessary, I was just making sure it was a complete failure of the form data posting, and not an incomplete post that was breaking the processing of the script.

I'm running out of ideas, so if anyone else can chime in I'm about out of steam.

coopster

5:13 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Check out some of the PHP server configuration variables too, especially variables_order [php.net].