Repgahroll Posted November 19, 2009 Share Posted November 19, 2009 Hello there. I'm learning Joomla, and the following lines works well to store "myvar" on database. <input type="text" name="myvar" value="<?php echo $myvar ?>"/> <?php $this->user->myvar = $myvar; ?> However, i want to store more than one input, so i wonder if it's possible to do something using javascript. For example <input type="text" name="myvara" value=""/> <input type="text" name="myvarb" value=""/> --some way to concatenate "on the fly" myvara+","+myvarb into myvar-- --some way to make it readable for php as "myvar" on input name above-- <?php $this->user->myvar = $myvar; ?> Thanks in advance. Quote Link to comment Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 i think u have to reload. Quote Link to comment 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.