User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jun 2008
Posts: 1
Reputation: paulkinchen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
paulkinchen paulkinchen is offline Offline
Newbie Poster

Contact Form from friend

  #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.
$("#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(); 
} 
}); 
} 
}); 
}); 
Any help would work.
Last edited by ~s.o.s~ : Jun 28th, 2008 at 4:14 am. Reason: Added code tags; learn to use them.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC