Home › Forums › Back End › Contact Form help › Reply To: Contact Form help
October 22, 2013 at 7:31 pm
#153767
Participant
test if form is passing values first
integrate validation
format email
send email
Thanks Alen that’s super helpful. I just dove into this thing blindly w/out any structure or process at all. It’s crazy how little info is out there on this. I thought it’d be a common thing w/ plenty of resources but it’s not the case o.0
I don’t actually want any other pages to open up upon submitting just for the bubble to pop up saying thanks, which is currently working on this form, so I’ve replaced
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
with
if($success){
print "EmailTo: $EmailTo<br>".
"Subject: $Subject<br>".
"Body: $Body<br>".
"From: $emailFrom";
}
else{
print "failure";
}
for testing purposes