Buy Now
Sign in

Using php variable in a field

walterbz , April 03 2015
W
walterbz
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
Hi Walter,

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

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
W
walterbz
Hi Bob,
so simple so great!
Thank You!!!!

Walter