Log in

View Full Version : Email Problem?



Joycemika
05-03-2007, 03:28 PM
I have to do a job application form for a company in their website. i am using macromedia dreamweaver to do it. i don't know how to post after the applicant key in all the details. the applicant has to click on the send button which means the form will send to the company e-mail add.. does anyone have this kind of source code or solutions?? thanks

boogyman
05-03-2007, 04:14 PM
are you talking about sending the email? you would use the mail function


mail(_to_, _subject_, _message_, _headers_);



if you are talking about being sent to a page after the email has been sent, then use


if(mail(mail(_to_, _subject_, _message_, _headers_)) {
header("Location: __URL__TO__PAGE__"); //Sends to New Page
echo "<p>TEXT</p>"; // Prints out some text
}
else {
echo "<p>An Error Occured, Please Resend<p>";
}