Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Form help Reply To: Contact Form help

#153767
kalmykov
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