Any body help me to get image name in save page
I have <img> tag for image. i want this <img> name is transfer to save.php using <input type "file"> any body help me
I want to get image name In <img> tag image name.
my code is
index.php
<img src="<?php echo $image; ?>" style="width:190px; height:150px;" alt="image" />
<input type="file" name="userfile" id="userfile" >
my save.php is
$webimagename=$_FILES['userfile']['name'];
echo $webimagename;
but i am not getting any body help me