Kcgame Posted February 20, 2005 Share Posted February 20, 2005 Hi, I have a form and some PHP codes that look like; <form name="realm_form" method="post" action=""> <input name="realm_field" type="text" value="" size="4" maxlength="4"> </form> <?php some more codes here ?> and would like the realm_field to display the value of $final_Realm_no which i calculate from my PHP code. How do i refer to the textfield in PHP code? Is there something like realm_form.realm_field=$final_Realm_no ? Any help/advise is greatly appreciated.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/2171-display-dynamic-text-to-a-textfield/ Share on other sites More sharing options...
Gary Tactic Posted February 22, 2005 Share Posted February 22, 2005 do you mean you want the value of that input to show $final_Realm_no? if so you could simply just do... <input name="realm_field" type="text" value="<? echo $final_Realm_no; ?>" size="4" maxlength="4"> Quote Link to comment https://forums.phpfreaks.com/topic/2171-display-dynamic-text-to-a-textfield/#findComment-7151 Share on other sites More sharing options...
Kcgame Posted February 23, 2005 Author Share Posted February 23, 2005 Thanks Gary! Its 100% what i want Quote Link to comment https://forums.phpfreaks.com/topic/2171-display-dynamic-text-to-a-textfield/#findComment-7161 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.