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. Link to comment https://forums.phpfreaks.com/topic/182107-get-inputs-concatenate-them-and-define-as-php-variable-without-reloading/ Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 i think u have to reload. Link to comment https://forums.phpfreaks.com/topic/182107-get-inputs-concatenate-them-and-define-as-php-variable-without-reloading/#findComment-960818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.