| | |
Contact Form from friend
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Solved Threads: 0
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.
Any help would work.
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)
$("#send").click( function () { if(checkcontactform() === true) { var xdata = 'contact=true'; xdata += '&name=' + $("input[name='cname']").val(); xdata += '&email=' + $("input[name='cemail']").val(); xdata += '&phone=' + $("input[name='cphone']").val(); xdata += '&company=' + $("input[name='ccompany']").val(); xdata += '&url=' + $("input[name='curl']").val(); xdata += '&media=' + $("select[name='media']").val(); xdata += '&timeline=' + $("select[name='timeline']").val(); xdata += '&budget=' + $("select[name='budget']").val(); xdata += '&message=' + $("textarea[name='message']").val(); $("#contactTable").fadeOut(400); $.ajax({ type: "POST", url: "/", data: xdata, success: function(msg){ $("#thanks").fadeIn(); document.forms.contactForm.reset(); } }); } }); });
Last edited by ~s.o.s~; Jun 28th, 2008 at 5:14 am. Reason: Added code tags; learn to use them.
![]() |
Similar Threads
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- Installing MSI NX6600GT... (Monitors, Displays and Video Cards)
- Wireless DSL...possible?? (Networking Hardware Configuration)
- Please help with email form script (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: ScrollWidget is not working on Firefox, can someone help
- Next Thread: change values of repeat region textfield
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart checkbox close codes column createrange() css cursor date debugger decimal dependent design dom download dropdown element embed enter error events firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsfile jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseover paypal php player position post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select software sql text textarea toggle unicode w3c website window windowofwords windowsxp





