[PHP] Re: saving the client's file upload location
On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question. Bob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have people upload a file from their computer but if my form comes back with an error then they have to go select their file location again. is there any way of saving that location so they don't have to pick it again??? upload file [ c:/temp/picture.jpg ] input type=File name=picture size=25 value=? echo $file_location ? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: saving the client's file upload location
But what is the name of the variable when you are uploading a file -- On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question. Bob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have people upload a file from their computer but if my form comes back with an error then they have to go select their file location again. is there any way of saving that location so they don't have to pick it again??? upload file [ c:/temp/picture.jpg ] input type=File name=picture size=25 value=? echo $file_location ? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: saving the client's file upload location
i have people upload a file from their computer but if my form comes back with an error then they have to go select their file location again. is there any way of saving that location so they don't have to pick it again??? upload file [ c:/temp/picture.jpg ] Not really. As a measure of security, you aren't told the original path on their hard drive of the file, so you can't use that tiny scrap of knowledge to try and hack their system. As a matter of privacy, you're told nothing more about their system than you need to know. You *CAN* have them hit the back button and click upload again, and that works in most browsers, if you aren't expiring the pages. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]