Hi,
I have "registration form" in Html. This form has text fields like loginid, password, email, address, zip, etc.
I want to check the loginid is available or not before submitting the form. For that i have given following link in html form just below to the loginid text field.
<div align="left"><a href="checkid.php?action=CheckID">Check the availability</a></div>
And checkid.php has following code.
<?php $loginid = $_POST['loginid'];mysql_connect("localhost", "root") or die("Cannot connect to DB!");mysql_select_db("loginsys") or die("Cannot select DB!");$r = mysql_query("SELECT * FROM login_tbl where loginid='$loginid';");$numrow = mysql_num_rows($r);if ($numrow == 0){print "This UserID is available";include "register1.html";}else{print "This UserID is not available";} ?>
But the problem is after selecting the link for checkid.php the $_POST['loginid'] is considered as blank. This is may be because I am not submitting the form.
Is there any other way to get $_POST['loginid'] value without choosing the submit button?
Can i pass the value of $_POST['loginid'] without choosing the submit button?
[/]