OsakaWebbie
Programmer
After discovering that some form code I had written worked on my local testbed but not on the hosting server, I gradually simplified my code trying to find my problem. But even when I got down to one line of code, it still has the same behavior: it works on my local testbed and one hoster, but not on another hoster (neither of two different domains hosted there). The error is that variables passed in, either by GET or POST methods, are never seen in the PHP code. I have had a more complex PHP application (including many forms submitted and processed) on one of the domains on that hoster for months, and it works fine, but somehow this simple thing doesn't, and I can't for the life of me see what in the more complex code would make it work, or what the hoster could have screwed up in their configuration to make complex code work and simple code not work.
Try and - you will see that the latter works and the former doesn't. The entire content of both formtestprocess.php files is the following:
I don't think I can dumb it down any more than that. I have also put a file called "phpinfo.php" on both sites (containing, you guessed it, a call to phpinfo() ), so you can see all the settings and compare. Can someone spot the problem, either what I lack in my code or what the hoster lacks in their configuration? Thanks.
Try and - you will see that the latter works and the former doesn't. The entire content of both formtestprocess.php files is the following:
Code:
<?php
echo "Name: $name<br>\n";
?>