[ciapug] PHP,Forms,and File Uploads

James Loghry loghry at krellinst.org
Thu May 18 14:37:40 CDT 2006


Hi all,
    This is more of a Java Script question, but I'm attempting to create
a form in PHP.  When the user errors out (e.g. is missing a required
field, or the DB query fails), I want to repopulate the file field in
the form (<.input type="file" ..) with the original file name (e.g. C:\...)

Apparently JavaScript won't let this happen due to security
restrictions.  I simply cannot say <.input type="field" name=""
value="C:\.."> and have C:\.. appear in the text box.

Are there any other (tricky) ways of doing this?

Thanks,

-- 
James Loghry
Software Engineer
The Krell Institute
1609 Golden Aspen Dr., Suite 101
Ames, IA 50010
http://www.krellinst.org
Phone: (515) 956 - 3696
Email: loghry at krellinst.org



More information about the ciapug mailing list