html forms and php

pixar

New Member
I'm using wampserver on my computer and wrote a simple html-form:\[code\] <form name="test" action="upload_file.php" method="post"> <label for="file">Filename:</label> <input type="file" name="picurl" id="file" ><br> <input type="submit" name="submit" value="http://stackoverflow.com/questions/13759750/Submit" > </form>\[/code\]When I click on "browse" and open a file ,for example pil.png it shows in the input textarea the full path(C:\Users\hope\Desktop\images\pil.png) I want this exact link saved but when I try to catch it $name = $_POST["name"];it only displays this- "pil.png" not the full path. why?
 
Back
Top