•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,337 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,206 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 535 | Replies: 0
![]() |
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Rep Power: 0
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.
$("#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 4:14 am. Reason: Added code tags; learn to use them.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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


Linear Mode