This is how you pre-populate a web form in Infusionsoft using PHP

Make sure your page is saved as .php before you try to test this.

<input type=’text’ name=’Contact0LastName’   value=’<?=$_GET['field name goes here']?>‘ />

To get the field name just look at the url and see what is passed. Just put that field name in the above section of code to have it pull from the url string.

So here is an example of a form. I will insert the above code to make first name,last name and email work.
You can copy and paste the first name line code below into one of your forms if you like.
Then host it using a .php page.
Then create a trackable link to send to the url of hosted form and check off the pass fields option check box.


<form action=”https://yourappname.infusionsoft.com/AddForms/processFormSecure.jsp” method=’POST’>
<input name=”xid” value=”1085e2956844e9da5c7c11786c2e71ee” id=”xid” type=”hidden” />
<input name=”type” value=”CustomFormWeb” id=”type” type=”hidden” />
<table><tr><td colspan=99 style=”padding:4px;background-color:#000000;color:#FFFFFF”>Contact Information</td></tr><tr><td>First Name</td><td>
<input type=’text’ name=’Contact0FirstName’ value=’<?=$_GET['FirstName']?>’>
</td></tr><tr><td>Last Name</td><td>
<input type=’text’ name=’Contact0LastName’  value=’<?=$_GET['LastName']?>’>
</td></tr><tr><td>Email *</td><td>
<input type=’text’ name=’Contact0Email’ value=’<?=$_GET['Email']?>’>

</td></tr><tr><td colspan=2><input name=”Submit” value=”Submit” id=”Submit” type=”submit” /></td></tr>
</table>
</form>

Thats pretty much it.
Let me know if you have any questions by going here.

STEVE
infusionpros.com

2 Responses to “This is how you pre-populate a web form in Infusionsoft using PHP”

  1. chris says:

    is it possible to have a hidden field in an infusionsoft form ?
    The hidden field value would be calculated based on
    a user-entered value in another field, with the help
    of some javascript. Then all the fields
    would be passed on to infusionsoft, including the hidden
    field. The idea is to have that
    hidden field value show up in a resulting email from the
    infusionsoft engine.

    the other idea is to create an action at the infusionsoft end,
    but i don’t know how flexible actions are. They are not like
    a programming language.

  2. Chris, Yes, I believe this is completely possible. The value of the hidden field would just be calculated before form submission and passed along with the rest of the fields to the contact record. Please inquire on our services page if you would like us to scope this out for you.
    thanks
    Steve


Leave a Reply

totalpackageside
Guide To Copy Writing

© 2010 Infusionpros All rights reserved. Powered by fiancement auto . Designed by simulation credit immobilier