Passing variables from URL to hidden...

User 10077 Photo


Senior Advisor
1,096 posts

I'm trying to read in a url variable to the form. I'm using Eric's method he demonstrates at:
http://ericrohloff.com/coffeecup/ccforu … nswer=Test

I have altered the .htaccess, tested it, and it is correctly parsing php within html files.

The url has a variable: ?s=abc123

The variable should present as the value in a hidden field at the bottom.
<input name="testinput" type="hidden" value="<?php echo $_GET['s']; ?>" />

However, when viewing the page, the hidden field looks exactly as what you see above. It's not getting the value and echoing it.

When I was trying to figure out why it's not working, I created a regular input and added value="<?php echo $_GET['s']; ?>" to it. It actually showed <?php echo $_GET['s']; ?> as the default value.

I checked the .html form page and made sure that the php code was correct and not ascii codes as well. It appears just like what I have above.

I'm not sure why it won't work. Did I miss something?
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 10077 Photo


Senior Advisor
1,096 posts

Solved it. When passing variables to the form, you have to link directly to the .html form. You cannot use the default script generated by FB.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 2484360 Photo


Registered User
3,293 posts

Brian Durfee wrote:
Solved it. When passing variables to the form, you have to link directly to the .html form. You cannot use the default script generated by FB.


That is what I said in your support ticket. :P
User 10077 Photo


Senior Advisor
1,096 posts

Adam, I didn't catch it at first from your answer (though I should have), but after working a little more, it all clicked and I had an "Ah Ha!" moment and posted here without thinking about where the idea came from. I should have given you credit. Sorry about that.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
User 2484360 Photo


Registered User
3,293 posts

Brian Durfee wrote:
Adam, I didn't catch it at first from your answer (though I should have), but after working a little more, it all clicked and I had an "Ah Ha!" moment and posted here without thinking about where the idea came from. I should have given you credit. Sorry about that.


Eric deserves the credit. :P He is the one that created the workaround.

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.