Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>..::Contato::..</title>
- // <![CDATA[
- jQuery(document).ready(function(){
- $('#contactform').submit(function(){
- var action = $(this).attr('action');
- $.post(action, {
- name: $('#name').val(),
- email: $('#email').val(),
- company: $('#company').val(),
- subject: $('#subject').val(),
- message: $('#message').val()
- },
- function(data){
- $('#contactform #submit').attr('disabled','');
- $('.response').remove();
- $('#contactform').before('<p class="response">'+data+'</p>');
- $('.response').slideDown();
- if(data=='Message sent!') $('#contactform').slideUp();
- }
- );
- return false;
- });
- });
- // ]]>
- </script>
- </head>
- <body>
- <form action="contact.php" method="post" id="contactform">
- <ol>
- <li>
- <label for="name">Primeiro Nome <span class="red">*</span></label>
- <input id="name" name="name" class="text" />
- </li>
- <li>
- <label for="email">Seu Email <span class="red">*</span></label>
- <input id="email" name="email" class="text" />
- </li>
- <li>
- <label for="company">Academia</label>
- <input id="company" name="company" class="text" />
- </li>
- <li>
- <label for="subject">Assunto</label>
- <input id="subject" name="subject" class="text" />
- </li>
- <li>
- <label for="message">Mensagem <span class="red">*</span></label>
- <textarea id="message" name="message" rows="6" cols="50">Deixe sua mensagem...</textarea>
- </li>
- <li class="buttons">
- <input type="image" name="imageField" id="imageField" src="images/send.gif" class="send" />
- <div class="clr"></div>
- </li>
- </ol>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement