Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. if (isset($_POST['submit'])) {
  2.  
  3. $firstName = htmlentities($_POST['name']);
  4. $firstName = str_replace(array('.', ',', ';', '?', '/', '|', '(', ')', 'º', '+', '#', '$', '@', "'", '"'), '' , $firstName);
  5. $firstName = trim(ucwords($firstName));
  6.  
  7. if(!empty($firstName)) {
  8. $user->saveCookie($firstName);
  9. }
  10.  
  11. header('Location: work.php');
  12. }
  13. $styles = 'indexStyles.css';
  14. $title = 'Hello Lisa';
  15. $scriptPath = 'js/scripts.php';
  16. require_once('includes/head.php');
  17. ?>
  18. <body onunload="">
  19. <div id="wrapper">
  20. .....
  21. <form action="" method="POST">
  22. <input name="name" type="text" autocomplete="off">
  23. <input type="submit" name="submit">
  24. </form>
  25. .....
  26.  
  27. $('input[type="submit"]').click(function(event) {
  28. event.preventDefault();
  29.  
  30. $('#footer').css({
  31. "position":"absolute",
  32. "bottom": "5px"
  33. });
  34. $('#wrapper').animate({
  35. "margin-top": "-1000px"
  36. }, 700, function(){
  37. $('form').submit();
  38. });
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement