Contact Form from friend

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2008
Posts: 1
Reputation: paulkinchen is an unknown quantity at this point 
Solved Threads: 0
paulkinchen paulkinchen is offline Offline
Newbie Poster

Contact Form from friend

 
0
  #1
Jun 26th, 2008
Hi,
A old friend of mine sent me a script for a contact form. I put it in my global.js file and trying to get my form to email the information to me. The form is jquery and ajax made and it works correctly by showing the form and when they click send the thanks script comes up. I am missing the file that directs the email to my email. Below is the script he sent me. Trying to get help on developing a file to direct the emails to my email.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. $("#send").click( function () {
  2. if(checkcontactform() === true) {
  3. var xdata = 'contact=true';
  4. xdata += '&name=' + $("input[name='cname']").val();
  5. xdata += '&email=' + $("input[name='cemail']").val();
  6. xdata += '&phone=' + $("input[name='cphone']").val();
  7. xdata += '&company=' + $("input[name='ccompany']").val();
  8. xdata += '&url=' + $("input[name='curl']").val();
  9. xdata += '&media=' + $("select[name='media']").val();
  10. xdata += '&timeline=' + $("select[name='timeline']").val();
  11. xdata += '&budget=' + $("select[name='budget']").val();
  12. xdata += '&message=' + $("textarea[name='message']").val();
  13. $("#contactTable").fadeOut(400);
  14. $.ajax({
  15. type: "POST",
  16. url: "/",
  17. data: xdata,
  18. success: function(msg){
  19. $("#thanks").fadeIn();
  20. document.forms.contactForm.reset();
  21. }
  22. });
  23. }
  24. });
  25. });
Any help would work.
Last edited by ~s.o.s~; Jun 28th, 2008 at 5:14 am. Reason: Added code tags; learn to use them.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC