What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I pre-populate fields in a form that's in an iFrame?Asked by guest_23315855275053 on November 27, 2012 at 04:05 PM
I want to get data from a previous page, say page A to a jotform that's in an iFrame on page B.
Is it possible to use URL parameters to prepoluta this form?
For example with this URL: http://www.jotform.com/form/1234?name=ThisIsMyName
Thanks for your help!
You would need to enable sending of POST variables on your first form.
On the second page, you would then read these POST variables with php, and generate your iframe code with those variables.
You code would look something like this:
$name = $_POST['name'];
<iframe src="//www.jotform.com/form/1234?name=<? echo $name; ?>" height="300px" width="100%"></iframe>
You may well need a little more help than but can you make a start and we will do what we can to help out.