Contact Form 7
Append post variables to redirect URL (2 posts)

  1. Mr.P
    Posted 3 years ago #

    I am using CF7 for a booking form which works fine, my problem is this: after a successful submission the page redirects to another page with a non CF7 form. I need the non CF7 form to pre-populate with POST variables from the previous page.

    I guess this can be done by changing the redirect URL in the CF7 admin page to append chosen post variables, I can then use $_GET[‘myvariable’] to pre-populate my new form.

    on_sent_ok: "location = http://example.com?name=myvariable&day=anothervariable';

    Can anyone help me achieve this please?


  2. zunch2000
    Posted 3 years ago #

    I need sort of the same solution.
    After submitting a for i would like the submitter to be redirected to a thank you page containing the user's data.
    for example:

    Thank you John Smith
    where John Smith will be taken from the form just submitted.

    Any idea please????

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic