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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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