sivanath.nagendran Posted December 8, 2006 Share Posted December 8, 2006 Hi I have enter username in one page in textbox. Then if I click submit the Username should be displayed in another page in another Textbox (input type="text") Is this possible in HTML? Pls show me the code also. Im using PHP language, so better use PHP language for this.BySivanath.N Quote Link to comment https://forums.phpfreaks.com/topic/29901-solved-input-typetextbox-prob/ Share on other sites More sharing options...
liam1412 Posted December 8, 2006 Share Posted December 8, 2006 Do you mean if say for example the form isn't completed right then it is redisplayed if so I use the following code[code]<form name="text" action="process.php" method="post"<input type="text" name="text1" id="text1" value="<?php if(isset($_POST['text1']) { echo $_POST['text1']);?>"[/code]This will echo the value that was entered into the 'text 1' input field when submit was pressed. Quote Link to comment https://forums.phpfreaks.com/topic/29901-solved-input-typetextbox-prob/#findComment-137387 Share on other sites More sharing options...
tarun Posted December 8, 2006 Share Posted December 8, 2006 1st Page<form name="text" action="send.php" method="post"><input type="text" name="1"></form>2nd Page (PHP)<form name="text" action="send.php" method="post"><input type="text" name="1" value="<?php echo('$1') ?>"></form> Quote Link to comment https://forums.phpfreaks.com/topic/29901-solved-input-typetextbox-prob/#findComment-137674 Share on other sites More sharing options...
sivanath.nagendran Posted December 11, 2006 Author Share Posted December 11, 2006 Thanks Tarun now I clear in this concept ya. Thank you so muchBySivanath.N Quote Link to comment https://forums.phpfreaks.com/topic/29901-solved-input-typetextbox-prob/#findComment-139305 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.