Click here to get back home

in Firefox

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
in Firefox ChollaPete 03-19-2008
`--> Re: in ... Michael Fesser03-19-2008
Posted by ChollaPete on March 19, 2008, 9:57 pm
Please log in for more thread options
This code:

<form action="processScan.php" method="get">
<p>
<?php
print "Scan name: <input type=\"file\" name=\"tScanFileName\" value=
\"\"><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

Posted by Michael Fesser on March 19, 2008, 10:01 pm
Please log in for more thread options
.oO(ChollaPete)

>This code:
>
><form action="processScan.php" method="get">
><p>
><?php
> print "Scan name: <input type=\"file\" name=\"tScanFileName\" value=
>\"\"><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

Similar ThreadsPosted
DIV not recognized by Firefox - It works only in IE - How to replace it for Firefox? May 8, 2007, 5:13 pm
Firefox and IE are different June 20, 2005, 3:28 am
Why does Firefox use 47 MB of RAM? December 26, 2005, 6:28 am
Firefox bug? April 1, 2008, 9:01 am
Firefox floating bug? November 18, 2004, 4:07 pm
Firefox Fanpage December 5, 2005, 4:50 pm
a img underline - firefox bug?? March 21, 2006, 11:29 am
Excel's xml in my firefox June 27, 2006, 6:32 pm
Firefox applies CSS but IE not July 5, 2006, 10:25 pm
A FireFox problem: with pre and ex September 13, 2006, 9:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap