Saturday, 15 February 2014

php - How to direct people to another page once submitting a form? -


I am currently working on this page:

When people enter their name and email address I want them to be redirected to a page where they can download the song for free ...

Currently it comes with just a warning box.

  & lt; Script & gt; $ ('Form'). SimpleContactForm ({senderEmail: "", // If you leave this field empty, the email address of the postal address form URL will be: "php / simpleContactForm.php", // path plugin php file type: "post", subject : "Free Download - Machine", Send In Afterward: True, Error Class: "Error", Success: Work () (Warning ('Successfully Sent!')}}});   

How do I change the success function so that it directs them to any other page? Or what is another way to do this?

After the form is submitted after the following code is redirected:

  window.location = "http: // www.exampleurl.com";   

Can I make it so much that this page can be visited when they enter your email?

I do not want people to download the song without entering

Add window .location.href

  success: function () {window.location.href = url; }    

No comments:

Post a Comment