dicky18 Posted May 22, 2007 Share Posted May 22, 2007 HI i dont know if its a stupid question but im so new to php you can forgive me well the thing is i have 3 text fields textfield1 textfield2 textfield3 I want to add textfield 1 with textfield 2 and display it in a hidden textfield3 with a space between the text. Textfield1(Sam) + Textfield2(Yam) = Textfield3 (Sam Yam) thanks in advance Link to comment https://forums.phpfreaks.com/topic/52457-help-append-two-textfields-into-a-third-one-with-a-space/ Share on other sites More sharing options...
jitesh Posted May 22, 2007 Share Posted May 22, 2007 <script language="javascript"> function mearge(){ document.getElementById('a3').value =document.getElementById('a1').value + " " +document.getElementById('a2').value ; } </script> <form name="a" method="post" action="test.php"> <input type="text" name="a1" id="a1"/> <input type="text" name="a2" id="a2"/> <input type="text" name="a3" id="a3"/> <input type="button" name="a11" id="a11" onclick="javascript:mearge();"/> </form> Link to comment https://forums.phpfreaks.com/topic/52457-help-append-two-textfields-into-a-third-one-with-a-space/#findComment-258833 Share on other sites More sharing options...
dicky18 Posted May 22, 2007 Author Share Posted May 22, 2007 thx a lot bro peace Link to comment https://forums.phpfreaks.com/topic/52457-help-append-two-textfields-into-a-third-one-with-a-space/#findComment-258851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.