Pop up message - Thank you…

Is there a way I can use the same type of pop up message that comes up with an error like “Field fullname cannot be empty” when the user trys to submit the form with an empty required field to tell them their request has been received?  I would like to have the “Thank you, we have received your form submission and will be in touch!!” pop up instead of redirecting them to the thankyou.php page.

One Response to “Pop up message - Thank you…”

  1. admin Says:

    You could add a JavaScript pop-up.

    Look for the PHP code which starts ‘header(’ near the end of the form processing script.

    Insert the Pop-up code above it, like:

    echo ““;
    die();

    This will do the pop-up then go back to the form (if form is named form.php)

    Note that JavaScript is required by the user for this to work.

Leave a Reply

You must be logged in to post a comment.