Goro 0

Hello,

One of the pages in my WordPress site is a long lead gen form. I was going to use a plugin like Contact Form 7 (http://wordpress.org/extend/plugins/contact-form-7/screenshots/) to implement it.

I will be redirecting to this page manually (from a different form on the site), and I was wondering if it is at all possible to have some fields pre-filled based on the user's previous entry?

Essentially, I have a small "contact us form", that asks for name and email address. If the user fills it, it takes them to a larger form, where they can enter more details if they want. I am wondering if it is possible to take the email address and name they entered in the first form, and have it show up when they go to the second form.

Thank you,

1 answer

0
points

Yes.

You could send all the variables by POST (you could use GET but the user would see all the data in the URL).

Don't know if I would use the contact form plugin for the "small" and first form...maybe I would use an hand coded form:

<form action="<SECOND PAGE URL>" method="post">
  First name: <input type="text" name="fname" /><br />
  Last name: <input type="text" name="lname" /><br />
  <input type="submit" value="Submit" />
</form>

It's more easier to change it...

Answered over 8 years ago by www.duvidasdeinformatica.com