JMair Posted January 15, 2010 Share Posted January 15, 2010 I'm trying to store a php variable in a html form (a static var) within a Joomla article. I dont think this is a Joomla problem as much as me not knowing how to store a value correctly.. Here is what I have on the html page.... <?php $varto = "myemail@domain.com";?> <input type="hidden" type="text" name="email" value="$varto" <br /> I know I'm butchering the syntax somehow. I've searched for php form Value, Form Value, but havent been able to find the answer. Hope you guys can help me out.. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/188612-add-static-form-var-to-pass-to-php/ Share on other sites More sharing options...
taquitosensei Posted January 15, 2010 Share Posted January 15, 2010 close <?php $varto = "myemail@domain.com";?> <input type="hidden" type="text" name="email" value="<?php echo $varto; ?>" <br /> Quote Link to comment https://forums.phpfreaks.com/topic/188612-add-static-form-var-to-pass-to-php/#findComment-995754 Share on other sites More sharing options...
JMair Posted January 15, 2010 Author Share Posted January 15, 2010 Thank you kindly! After trying it with Joomla the data passed was the string <?php echo $varto; ?> and not myemail@domain.com like I was hoping. maybe this is a Joomla thing. I'll pose the question over there. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/188612-add-static-form-var-to-pass-to-php/#findComment-995771 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.