Page 1 of 1

passing file URL from form to php page

Posted: Wed Jan 18, 2012 4:29 pm
by new_php_coder
Hello,

I need to pass a file URL to a php page. I have

Code: Select all

$file = $_POST['file'];
in the php page but it is giving me only file name. How to pass complete URL to a page?

Thanks

Re: passing file URL from form to php page

Posted: Wed Jan 18, 2012 5:49 pm
by Christopher
In your form, you have an <input> field with the name 'file' ? Do you set the value of that field to the URL? Can we the form code?