Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['submit'])) {
- $firstName = htmlentities($_POST['name']);
- $firstName = str_replace(array('.', ',', ';', '?', '/', '|', '(', ')', 'º', '+', '#', '$', '@', "'", '"'), '' , $firstName);
- $firstName = trim(ucwords($firstName));
- if(!empty($firstName)) {
- $user->saveCookie($firstName);
- }
- header('Location: work.php');
- }
- $styles = 'indexStyles.css';
- $title = 'Hello Lisa';
- $scriptPath = 'js/scripts.php';
- require_once('includes/head.php');
- ?>
- <body onunload="">
- <div id="wrapper">
- .....
- <form action="" method="POST">
- <input name="name" type="text" autocomplete="off">
- <input type="submit" name="submit">
- </form>
- .....
- $('input[type="submit"]').click(function(event) {
- event.preventDefault();
- $('#footer').css({
- "position":"absolute",
- "bottom": "5px"
- });
- $('#wrapper').animate({
- "margin-top": "-1000px"
- }, 700, function(){
- $('form').submit();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement