index.php:
<p>Email ID:<span style="color:red;">*</span></p> <input type="email" class="search" name="email"
required="required" autocomplete="off"/>
<?php echo $email_error;?></p>
Coding:<?php ob_start("ob_gzhandler"); include('admin/conn.php'); session_start(); if(isset($_POST['submit'])!="") { $email=$_POST['email']; $search_num1=mysql_query("select * from signup where email='$email'")
or die(mysql_error()); $fetch1=mysql_num_rows($search_num1); if($fetch1) { $email_error="<span style=color:red; font-size:16px;><b>Already Exit This Email!</b></span>"; } else { ?><?php }} ?>
No comments:
Post a Comment