FORMfields, the premiere web framework
Login
Support Home | Knowledge Base | Documentation | Forums | Contact Us
Info
FORMfields & FORMgen :: Generated Forms

Post Form Data to a Script After the Thank You Page

(2179 views. Last Updated: 2007-08-08 6:39 PM)

To post form data to a script after the Thank You page, edit your form and replace:
if (!FF_DISPLAY_THANK_YOU_PAGE) {
    header("Location: " . $GLOBALS["FF_DONE_URL"]);
}
with something like:
$GLOBALS["FF_DONE_URL"] = "http://www.mysite.com/index.php?" . FfExtHelper::getQueryString($ffForm->getValues());
                
if (!FF_DISPLAY_THANK_YOU_PAGE) {
    header("Location: " . $GLOBALS["FF_DONE_URL"]);
}

Note: this actually passes data as a GET and not a POST. You can however use this same method to do a POST, but this is only recommended for intermediate PHP programmers.
Info
Support | Earn Money
Copyright © 2005-2019 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.