file upload and passing a paramater

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

file upload and passing a paramater

Post 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
iWizard
Forum Newbie
Posts: 6
Joined: Sun Jun 14, 2009 10:52 am

Re: file upload and passing a paramater

Post by iWizard »

Code: Select all

$hidden_value=$_POST["id5"];
The variable's value is then stored in the variable, $hidden_value.
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Re: file upload and passing a paramater

Post by pelegk2 »

10X
i forgot that it's a POST method
Post Reply