garydt Posted October 24, 2007 Share Posted October 24, 2007 When uploading files the browse button doesn't appear in Mozilla. How do you solve this? Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/ Share on other sites More sharing options...
Wuhtzu Posted October 24, 2007 Share Posted October 24, 2007 [ code][ /code] Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376904 Share on other sites More sharing options...
garydt Posted October 24, 2007 Author Share Posted October 24, 2007 <input type="file" name="fileName"> This works in Internet Explorer but not in Mozilla Firefox browser. How do you solve this please? Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376910 Share on other sites More sharing options...
Wuhtzu Posted October 24, 2007 Share Posted October 24, 2007 Creating a file with _just_ your code in it, saving it as buttontest.html and viewing it in FireFox 2.0.0.8 displays the button without any problems. <input type="file" name="fileName"> Creating a file containing the below code displays the button correct as well: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Button test</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <form action="#" method="post"> <div> <input type="file" name="fileName" /> </div> </form> </body> </html> This even validates as XHTML 1.0 strict and all modern browses (including firefox) should display such markup correctly. Please post more of your code and which version of FF you are using since the <input type="file" name="fileName"> isn't the problem. Another great idea would be to show us the actual site so we can test it in our own browers... Btw: I have never experienced the problem you mention and this is not a PHP question Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376914 Share on other sites More sharing options...
Wuhtzu Posted October 24, 2007 Share Posted October 24, 2007 Can you see this browse button in Firefox? http://wuhtzu.dk/test/filebutton.html Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376917 Share on other sites More sharing options...
garydt Posted October 24, 2007 Author Share Posted October 24, 2007 Yes i can see the browse button in Firefox. However I am using the browse in php document as i resize the uploaded file. If you go here http://www.elvis-people.com/uplodsmalpic.php?picnum=3 you won't see the browse button. Thanks Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376924 Share on other sites More sharing options...
Wuhtzu Posted October 24, 2007 Share Posted October 24, 2007 Nope I don't see it... neither in Firefox nor in Internet Explorer. <input name="file" type="file" id="file" onchange="MM_showHideLayers('Layer3','','hide')"> I'm sure it has to do with your java-script... Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376927 Share on other sites More sharing options...
garydt Posted October 24, 2007 Author Share Posted October 24, 2007 Thanks. Is there any command in php to check for browser version. Link to comment https://forums.phpfreaks.com/topic/74577-browse-button-in-mozilla/#findComment-376963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.