Page 1 of 1

file upload and passing a paramater

Posted: Mon Oct 12, 2009 6:20 pm
by pelegk2
i have used this example
PHP - File Upload to upload a file.
in the upload form i added a hidden object, and gave it a value for example :
<input type="hidden" name="id1" value="5">

how can i read this value on the server side?
Thanks
Peleg

Re: file upload and passing a paramater

Posted: Mon Oct 12, 2009 7:15 pm
by iWizard

Code: Select all

$hidden_value=$_POST["id5"];
The variable's value is then stored in the variable, $hidden_value.

Re: file upload and passing a paramater

Posted: Tue Oct 13, 2009 2:28 am
by pelegk2
10X
i forgot that it's a POST method