Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery to php same issue but specified
    text
    copied!<p>i am still having the same issue as before but this one is more specified and more info here's my form: </p> <pre><code> &lt;form method="post"action=""&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Login&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt; &lt;input name="LEmail" id="LEmail" value="Email"/&gt;&lt;/td&gt; &lt;td&gt; &lt;label class="error" id="LEmail_error"&gt;*invalid&lt;/label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;input name="LPassword" id="LPassword" value="Password"/&gt;&lt;/td&gt; &lt;td&gt;&lt;label class="error" id="LPassword_error"&gt;*invalid&lt;/label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;input type="button" class="LButton" id="LButton" value="submit"/&gt; &lt;/form&gt; </code></pre> <p>and here is the jquery </p> <pre><code>$(document).ready(function(){ $('.error').hide(); $(".LButton").click(function(){ //alert("yay i was clicked"); var LEmail=$("input#LEmail").val() if(LEmail==""||LEmail=="Email"){ $("label#LEmail_error").show(); return false; } var LPassword=$("input#LPassword").val(); if(LPassword==""||LPassword=="Password"){ $("label#LPassword_error").show(); return false; } var info='LEmail='+ LEmail + '&amp;LPassword=' + LPassword; alert(info); $.ajax({ type:"POST", url:"process.php", //dataType: string; data: info, success:function(data){ window.location.href="process.php"; alert(data); }, error: function(xhr, type, exception){ alert("something went wront here"); alert("Error: " + type); console.log('@Error: '+errorThrown); console.log('@Status: '+status); console.log('@Status Text: '+xhr.statusText); } }) }); }); </code></pre> <p>and the php</p> <pre><code> $LEmail=$_POST['LEmail']; $LPassword=$_POST['LPassword']; /* if(mysql_num_rows(mysql_query("SELECT EmailAddress AND Password FROM Users WHERE EmailAddress= $LEmail AND Password=$LPassword)&gt;0){ } */ var_dump($LEmail); var_dump($LPassword); </code></pre> <p>for some reason when the php page loads it claims it is an undefined index LEMail same for LPassword</p> <p>all my variables are NUM but when i do the alerts the values are correct </p>
 

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