Skip to main content

When submitting my form, sometimes the $_POST$_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_sizepost_max_size is large (500M)500M and I'm only inputting values from checkboxes. What could be causing this? I might'vemight have thought it was because of a forloopfor loop I'm using, but the POST$_POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input id="myImage" type="file" accept="image/*" name="file" class="upload" />
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input id="myImage" type="file" accept="image/*" name="file" class="upload" />
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large 500M and I'm only inputting values from checkboxes. What could be causing this? I might have thought it was because of a for loop I'm using, but the $_POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input id="myImage" type="file" accept="image/*" name="file" class="upload" />
    <input type="submit">
</form>
added 88 characters in body
Source Link
Hook
  • 335
  • 1
  • 4
  • 12

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input id="myImage" type="file" accept="image/*" name="file" class="upload" />
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input id="myImage" type="file" accept="image/*" name="file" class="upload" />
    <input type="submit">
</form>
added 2 characters in body
Source Link
Hook
  • 335
  • 1
  • 4
  • 12

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>>';
    } 
    ?>
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>
    } 
    ?>
    <input type="submit">
</form>

When submitting my form, sometimes the $_POST array is empty and other times it's not (when inputting the exact same thing on the exact same input). My post_max_size is large (500M) and I'm only inputting values from checkboxes. What could be causing this? I might've thought it was because of a forloop I'm using, but the POST array is fine half the time and empty the other.

 <form action="send.php" method="post" enctype="multipart/form-data">
    <input type="checkbox" name="Facebook" value="Facebook" id="Facebook"/>
    <input type="checkbox" name="Twitter" value="Twitter" id="Twitter"/>
    <?php
    for($i = 0; $i < $blogcount; $i = $i + 1){
    echo '<input type="checkbox" name="Tumblr[]" value="'.$bloglist[$i].'" id="Tumblr'.$bloglist[$i].'"/>';
    } 
    ?>
    <input type="submit">
</form>
Source Link
Hook
  • 335
  • 1
  • 4
  • 12
Loading