0

we have a form and if we would like to pass some hidden fields.say,username is hidden but required and email and password is what the user form is about:-

<html>
<head>
<title>Untitled Document</title>
<script language="javascript">
function fillname(val)
{


document.form1.textname.value=val ;

}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="">
  user email  <input type="text" name="txtmail" onChange="fillname(this.value)">
   <input type="hidden" name="textname">
</form>
</body>
</html>
2
Contributors
1
Reply
11
Views
11 Years
Discussion Span
Last Post by LastMitch
0

we have a form and if we would like to pass some hidden fields.say,username is hidden but required and email and password is what the user form is about:-

I don't quite understand how this code snippet runs because it doesn't really do anything.

I attached an image on how it looks like:

611cc913060ec0b9cceb57d02ca7bf59

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.