Jump to content

$_POST not working in Mozilla Firefox


HAcland

Recommended Posts

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...

Link to comment
https://forums.phpfreaks.com/topic/78097-_post-not-working-in-mozilla-firefox/
Share on other sites

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??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.