[thelist] PHP Form Elements

bread_man badlanners at hotmail.com
Tue Aug 19 06:38:41 CDT 2003


Hi folks,

I am an ASP guy just learning PHP.  Knowing basic programming logic and similar syntax from Actionscripting, it hasn't been too steep of a learning curve, and I am growing fond of the language.  I am running into something a bit odd, however and could use some help.

I have a form page that calls itself as the action.  The form takes the user input and writes it to a file, to be emailed to an admin from another page at his convenience.  Form works great on my windows IIS4 development server - got some nice validation going, and it does just what it should.  I upload it to my client's 'nix hosting server and it doesn't work.  First of all, they have error reporting turned off which sucks.  However, the main problem is that the form doesn't seem to pick up ANY of the form fields when on the production server.

/register.php?name=adam  (action="register.php" method="post")

print "Name value is " . $_POST['name'];

...will return "Name value is adam" on my development server, but will return "Name value is " on the production server.

PHP tags are getting processed, just won't grab my form data on the production server. Weird.  Perhaps its a syntax thing I don't know about, perhaps a configuration thing on the hosting.  Any ideas as to why this is happening?  Thanks for bearing with me as a PHP n00b.

Thanks in advance!
adam


More information about the thelist mailing list