Hey all,
I'm attempting to do some form processing on a server that has
register_globals off, however, I've run into a confusing situation and
need some help.
Basically, the form is a multi-part/form-data form as I have it upload
a file in addition to submit a number of other fields, but the error I
have occurs even when no upload is done.
When I submit the form, all my input field variables get filled with
garbage. Here's the html before submission for one of the fields:
<FORM name="product" action="product.php?mode=add" method="post"
encType="multipart/form-data">
<INPUT type=hidden value=100000000 name=MAX_FILE_SIZE>
Product Name: <INPUT VALUE=<? print ("\"$productname\""); ?> size=30
name=productname>
The form submits to itself and does some error checking, but to try to
figure this out, I print the variable from the form submission before
my code even touches it at the top of the page and it's garbage.
echo $_POST["productname"];
To see an example of all the garbage my fields get, you can look at
http://www.ratlhead.com/php.gif And the garbage there changes...it's
random. You can see my echo statement that I do right before doing
any PHP stuff.
I'm totally confused, as I had this code working on another server,
but not on this one. And I'm guessing something to do with the PHP
enviroment is the problem.
Any input would be appriciated! Thanks!