Click to See Complete Forum and Search --> : capture fields..


mistgal
12-18-2003, 08:19 PM
hi..

hw am i going to capture the fields tat user has jus enter on the same page..

my example..

<form action="admin_insert_action.jsp" method="post" name="add_admin" id="add_admin">
<table width="35%" border="1" align="center">
<tr>
<td width="35%"><font color="#333333" size="2" face="Arial">User
Name</font></td>
<td width="65%"><div align="center"> <font color="#333333" size="2" face="Arial">
<input name="U_NAME " type="text" id="u_name">
</font></div></td>
</tr>
</table>
<input type="hidden" name="to" value="mistgal@singnet.com.sg">
<input type="hidden" name="subject" value="Modification of Database">
<input type="hidden" name="message" value="User: <%=""+username+""%>
Insert Admin: CAPTURE ">

for tis.. i would like to capture the U_NAME to display at the CAPTURE..

cheers

pyro
12-18-2003, 08:40 PM
<input name="U_NAME " type="text" id="u_name" onkeyup="this.form.message.value='User: '+this.value">

and

<input type="hidden" name="message" value="User:">