- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello everyone,
I am building a contact form as well as a registration form to be included in a WordPress template. So far the form is styled and the jQuery validation is working correctly. What I would like the form to do when it is submitted is do the back end validation, email the info to a set email address and then replace the form with a success message.
Can anyone recommend a good tutorial? I have googled it but I seem to be swimming in a sea of contact forms.
Thanks.
This one is pretty simple:
Thanks for the link.
I used the script and it passes on the info fine but I am wondering how I can go about displaying the success or failure message on the original contact page rather than having a new page loaded.
User fills out info -> user clicks submit -> info is validated -> form disappears or fades out and is replaced by the success or failure message
Find this at the bottom:
And replace it with something like this:
if(mail($to, $subject, $message, $headers))
{
header(“Location: ” . $result);
}
else
{
header(“Location: ” . $errorpage);
}
}