passing file URL from form to php page

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
new_php_coder
Forum Newbie
Posts: 2
Joined: Wed Jan 18, 2012 4:26 pm

passing file URL from form to php page

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: passing file URL from form to php page

Post 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?
(#10850)
Post Reply