Forums

Using php variable in a field

walterbz 03 Apr, 2015
Hi chronoteam,
I have a simple question about the use of variables. I googled and searched a lot but cannot find an answer. Perhaps I'm using wrong keywords.
I just want to put in a hidden field the content of a php variable.
For example:
calling the url of my form: www.mysite.com/?option=com_chronoforms5&chronoform=myform&var=myname

the in the form there is a hidden field there I want the variable "var" to go.

Can you please help?
Thank you
Walter
GreyHead 03 Apr, 2015
1 Likes
Hi Walter,

Please try
<input type='hidden' name='var' id='var' value='' /> 

Bob
walterbz 03 Apr, 2015
Hi Bob,
so simple so great!
Thank You!!!!

Walter
This topic is locked and no more replies can be posted.