HighDots Forums  

<input type="file" value="path/file.jpeg"> in Firefox

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss <input type="file" value="path/file.jpeg"> in Firefox in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ChollaPete
 
Posts: n/a

Default <input type="file" value="path/file.jpeg"> in Firefox - 03-19-2008 , 08:57 PM






This code:

<form action="processScan.php" method="get">
<p>
<?php
print "Scan name: <input type=\"file\" name=\"tScanFileName\" value=
\"{$scanFileName}\"><br>";
addHiddenCarryons();
?>
<input type="submit">
</form>

does not render with the value attribute's value as the default text.
I.e., then the form renders, I want the string value of $scanFileName
already in the input field as the default text. I'm using Firefox
2.0.0.12, PHP 5.2.4 and Apache 1.3.33.

Any ideas?

Thanks,
Mark

Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: <input type="file" value="path/file.jpeg"> in Firefox - 03-19-2008 , 09:01 PM






..oO(ChollaPete)

Quote:
This code:

form action="processScan.php" method="get"
p
?php
print "Scan name: <input type=\"file\" name=\"tScanFileName\" value=
\"{$scanFileName}\"><br>";
addHiddenCarryons();
?
input type="submit"
/form

does not render with the value attribute's value as the default text.
I.e., then the form renders, I want the string value of $scanFileName
already in the input field as the default text. I'm using Firefox
2.0.0.12, PHP 5.2.4 and Apache 1.3.33.

Any ideas?
The 'file' input control does not allow default values for security
reasons. This would make it too easy to steal files from the user's
machine.

And BTW: HTML also allows single quotes around attributes. This avoids
the ugly escaping like above.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.