Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keeping form values displayed....

Status
Not open for further replies.

macmac1

Programmer
Jan 20, 2002
11
US
How do you keep the value of an input box displayed after you submit the page to its self..


<SCRIPT LANGUAGE=&quot;javascript&quot;>
function send()
{document.fu.submit()}
</SCRIPT>

</head>
<body>
<form name=fu method=&quot;post&quot;>
<input name=&quot;test&quot;>
<input name=&quot;nu&quot; onchange=&quot;send()&quot;>
<!-- user will input a numeric value. i want to keep the values in the input boxes -->
</form
 
You have to include one more property called action to the same asp page or js page or html so that you could get the value of the control and write a function to display..

i.e., suppose your file name is send.html then your form tag should be as follows


<form name=fu action= &quot;send.html&quot; &quot;method=&quot;post&quot;>
<input name=&quot;test&quot;>
<input name=&quot;nu&quot; onchange=&quot;send()&quot;>
<!-- user will input a numeric value. i want to keep the values in the input boxes -->
</form
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top