Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP form not submitting
    primarykey
    data
    text
    <p>For one reason or another, I cannot get my PHP form to post. I tried running print statements in login.php and nothing yielded.</p> <pre><code>&lt;form action="login.php" method="post" id="loginForm"&gt; &lt;div class="input-prepend login-input"&gt; &lt;span class="add-on"&gt;&lt;i class="icon-envelope"&gt;&lt;/i&gt;&lt;/span&gt; &lt;input class="span2" name="email" type="email" placeholder="Email address" required&gt; &lt;/div&gt; &lt;div class="input-prepend login-input"&gt; &lt;span class="add-on"&gt;&lt;i class="icon-key"&gt;&lt;/i&gt;&lt;/span&gt; &lt;input class="span2" name="password" type="password" placeholder="Password" required&gt; &lt;!--&lt;i class="icon-eye-open password" id="eye"&gt;&lt;/i&gt;--&gt; &lt;/div&gt; &lt;input class="btn btn-primary login-input" id="loginButton" type="submit" value="Login"/&gt; &lt;input class="btn btn-small login-input" id="cancelButton" type="button" value="Cancel"/&gt; &lt;/form&gt; </code></pre> <p>When I submit the form, absolutely nothing happens, why would that be? Here is my login.php:</p> <pre><code>&lt;?php include 'core/init.php'; if(empty($_POST) === false){ $email = $_POST['email']; $password = $_POST['password']; #HTML5 should have checked this, just as an extra precaution if(empty($email) || empty($password)){ $errors[] = "Please enter your email and password"; } else if(user_exists($email) === false){ $errors[] = "User does not exist"; } else if(user_active($email) === false){ $errors[] = "Your account has not been activated" } else{ #log in the user } print_r($errors); } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload