Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mail="abc@gmail.com";
- $query="insert into mydbtest.temp_signup(name,mail_id,password,mobile,type)
- values('$name','$mail','$password',$mobile,'$type')" or die(
- mysqli_error());
- $result=mysqli_query($conn,$query);
- // Mail sent to admin or company
- $msg = " n Hi,n Congrats !!!
- Thanks for signup . Do wonders ...
- ------------------------
- Username: $name
- Password: $password
- ------------------------
- Your account has been created, you can login with the following credentials
- after you have activated your account by pressing the url below.
- Please click this link to activate your account:
- ***http://www.rupeeandcoins.com/verify.php?email=".$mail."&key=".$key.***
- "n Thank you.
- With Regards,
- RupeeandCoins Team ...";
- // send email
- mail($mail,"RupeeandCoins Signup Confirmation ...",$msg);
- ?>
- <?php
- if(isset($_GET['email']) && !empty($_GET['email']) AND isset($_GET['key'])
- && !empty($_GET['key'])){
- $email = mysql_escape_string($_GET['email']);
- $key = mysql_escape_string($_GET['key']);
- echo $email." ".$key;
- echo "<script>alert('welcome')</script>";
- ?>
Add Comment
Please, Sign In to add comment