Guest User

Untitled

a guest
Feb 8th, 2018
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <?php
  2.  
  3. $mail="abc@gmail.com";
  4. $query="insert into mydbtest.temp_signup(name,mail_id,password,mobile,type)
  5. values('$name','$mail','$password',$mobile,'$type')" or die(
  6. mysqli_error());
  7. $result=mysqli_query($conn,$query);
  8. // Mail sent to admin or company
  9. $msg = " n Hi,n Congrats !!!
  10. Thanks for signup . Do wonders ...
  11. ------------------------
  12. Username: $name
  13. Password: $password
  14. ------------------------
  15. Your account has been created, you can login with the following credentials
  16. after you have activated your account by pressing the url below.
  17.  
  18. Please click this link to activate your account:
  19. ***http://www.rupeeandcoins.com/verify.php?email=".$mail."&key=".$key.***
  20.  
  21. "n Thank you.
  22. With Regards,
  23. RupeeandCoins Team ...";
  24.  
  25. // send email
  26. mail($mail,"RupeeandCoins Signup Confirmation ...",$msg);
  27. ?>
  28.  
  29. <?php
  30.  
  31. if(isset($_GET['email']) && !empty($_GET['email']) AND isset($_GET['key'])
  32. && !empty($_GET['key'])){
  33. $email = mysql_escape_string($_GET['email']);
  34. $key = mysql_escape_string($_GET['key']);
  35. echo $email." ".$key;
  36. echo "<script>alert('welcome')</script>";
  37. ?>
Add Comment
Please, Sign In to add comment