Posts

Showing posts with the label php mysql

PHP MySQL After data insert send Email

Image
insert.php <form method="post" action="submitinsert.php"> name<input type="text" name="name"><br> email<input type="email" name="email"><br> <input type="submit" name="submit" value="submit"> </form> submitinsert.php <?php $servername="localhost"; $username="root"; $password=""; $database="okmam"; //create connection$ $conn=new mysqli($servername, $username, $password, $database); //check connection if ($conn->connect_error) {     die("connection failed: ".$conn->connect_error); } ?> <?php $name=$_POST['name']; $email=$_POST['email']; if (!$conn) {     die("Connection failed: " . mysqli_connect_error()); } $sql = "INSERT INTO inserttest (name, email) VALUES ('$name', '$email')"; if (mysqli_query(...

Building A registration System with Email verification in PHP

Image
Building A registration System with Email verification in PHP by Hyder in PHP Have you ever registered on a website and you were required to activate your newly created account via a confirmation link sent to the email address you supplied while registering? This Email verification “Mechanism” is very common nowadays especially in forums, popular websites such as ebay, paypal, Facebook etc .Verifying Email Address helps to reduce spam and also to make sure that the email supplied belongs to that member. What are we going to build ? We are going to build a small system in which a user can register a new account. After registration, a confirmation link will be emailed to the email supplied in the registration form. The user will have to log in his email Account and click the activation link. After that, He or she or she  will be able to login into the system. Before Going into the code, here is some screenshot of how it is going to work. A...