HAcland Posted November 20, 2007 Share Posted November 20, 2007 Hi again, <?php $boatname = $_POST['boatname']; $UBN = $_POST['ubn']; echo $UBN; works fine in IE7 but in FireFox it doesn't seem to be able to retrieve the "posted" variables and therefore the echo statement doesn't display anything. Form code : echo '<input type="hidden" name="ubn" value="'.$UBN.'">'; Weird. Things normal don't work in IE7!! Any help much appreciated... Quote Link to comment Share on other sites More sharing options...
trq Posted November 20, 2007 Share Posted November 20, 2007 Can wee see your actual code? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 20, 2007 Share Posted November 20, 2007 Can you post the form itself Quote Link to comment Share on other sites More sharing options...
HAcland Posted November 20, 2007 Author Share Posted November 20, 2007 Ok. I have stripped out all the code except the following : FORM CODE : <?php echo '<form id="Upload" action="demo.php" enctype="multipart/form-data" method="post">'; ?> <h1> Upload form </h1> <p> <?php echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.$max_file_size.'">'; echo '<input type="hidden" name="boatname" value="'.$boatname.'">'; echo '<input type="hidden" name="ubn" value="'.$UBN.'">'; ?> </p> <p> <label for="file">File to upload:</label> <input id="file" type="file" name="file"> </p> <p> <label for="submit">Press to...</label> <input id="submit" type="submit" name="submit" value="Upload me!"> </p> </form> I am guessing that it is something to do with uploading files through mozilla?? Quote Link to comment Share on other sites More sharing options...
HAcland Posted November 20, 2007 Author Share Posted November 20, 2007 OK, i may be onto something. The code is in a Joomla wrapper which is an "inline frame". Does FireFox have issues with this? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 20, 2007 Share Posted November 20, 2007 change <input id="file" type="file" name="file"> to <input type="file" name="file"> and <input id="submit" type="submit" name="submit" value="Upload me!"> to <input type="submit" name="submit" value="Upload me!"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.