I have created a image upload file off of a tutorial, either here or at another php site, then i added some stuff to it, so that when the image form is submited, certain data is recorded in a mysql table. now, the image uploads fine, and the data goes to the table ok, except for the image name. im trying to make it so that when i submit the forum, the picture name is inserted into the table. without me having to type it in.
this is what is used for the image name in the image upload part
$userfile_name = $_FILES['image']['name'];
and this is the part of the form i want to have the image name automaticly inserted into when i submit the form.
<input name="picture_name" type="hidden" id="picture_name" value=" ">
the only problem is, im not sure what to put in for the value to make it work. i have tried several diffrent things, most game me a phrase error.