Pre-Populate Forms via URL string -...

User 68824 Photo


Registered User
10 posts

that did the trick but I am struggling to get this working with my form..here is the form location
http://www.intelliclicksoftware.com/For … kForm.html
and I am trying to populate a Company field with this url string:
http://www.intelliclicksoftware.com/For … ompany=BAS

I have inserted a GET for the company field as follows:
<div class="fb-input-box">
<input id="item20_text_1" autocomplete="off" data-hint="" maxlength="254" name="Company" placeholder="" type="text" value="<? echo $_GET['Company'] ?>">

What might I be missing?
User 187934 Photo


Senior Advisor
20,193 posts

It's small but very important.;)
<div class="fb-input-box">
<input id="item20_text_1" autocomplete="off" data-hint="" maxlength="254" name="Company" placeholder="" type="text" value="<? echo $_GET['Company']; ?>">
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 68824 Photo


Registered User
10 posts

do I apply the GET statement in the HTML file? The PHP file generated by WFB does not have anywhere obvious to put that code into.
User 68824 Photo


Registered User
10 posts

I am trying to pass the data to the form via a URL with no other form..in this case
http://www.intelliclicksoftware.com/For … ompany=BAS
is the URL I am calling and I have the GET statement on the form in the company field but no luck
User 187934 Photo


Senior Advisor
20,193 posts

Try this.
value="<?php echo $_GET['Company']; ?>"
Also make sure you have your server setup to sparse php inside html.
Add this line to your .htaccess
AddHandler application/x-httpd-php .php .html .htm
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 68824 Photo


Registered User
10 posts

How do you make sure the server is setup to sparse PHP inside HTML. Our site is hosted on 1and1.com. What setting would I be looking for?

Is the .htaccess file the one in the STORAGE folder the correct one to update?

Tried all these steps and so far no joy:(
User 68824 Photo


Registered User
10 posts

actually solved it...just need to save the HTML file as PHP and then receive the variables...all works fine..appreciate all your input...is there a way to contact you by phone or email...we have a client who is seeing an expert on WFB to allow forms to call another PHP file after it processes the capcha as part of the submit process
User 187934 Photo


Senior Advisor
20,193 posts

It should be at the root of your site. If you can't find the .htaccess ask your host to do it for you. Another option is to change your form extension to php then alter the code to reflect that change.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 68824 Photo


Registered User
10 posts

thanks...is there any way to reach you by phone or email for other paid work?
User 2591793 Photo


Registered User
2 posts

Hey Eric -

This really helped me a lot this week! I would like to use this same method for pre-populating a dropdown. Can you please advise on where to replace the [ value="<? echo $_GET['Company']; ?>">]. I assume its in place of option id, but I cannot get it to work. Thanks.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.