<?php echo $validate_msg; echo $checkuser; echo "<br/>"; echo $msg; ?>
// Validate e-mail address if(filter_var($submitemail, FILTER_VALIDATE_EMAIL)) { if($numrows == 0) { $stmt->execute(); $stmt->close(); } else { $checkuser = "Username Or Email Already Used"; } } else { $validate_msg = "$submitemail is Not valid email address"; } if($conn->insert_id) { $msg = "<h3>Registered successfully.</h3>"; } else { $msg = "Registration Failed"; } } ?> <body> <div style="margin-top:5%" class="container"> <div class="col-sm-4"> </div> <div class="row"> <div class="col-sm-4" style="background:#eeeeee;"> <?php echo $validate_msg; echo $checkuser; echo "<br/>"; echo $msg; ?> <h2>Signup</h2>
Quote:I am a newbie in this php thing.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)