Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <a href="contact.php?title=Jimmy&emailto=jimmy@mysite.com">
  2.  
  3. <?php
  4. // Checks to see if $emailto is empty, if so, it will send to this default email address
  5. if (empty($_GET['emailto'])) {
  6. $_GET['emailto'] = 'info@mysite.com';
  7. }
  8. ?>
  9.  
  10. <?php
  11. // Checks to see if $title is empty, if so, will default the the selected title "US"
  12. if (empty($_GET['title'])) {
  13. $_GET['title'] = 'Us';
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement