passing the email as username in a form submission

hbmarar hbmarar is offline Offline Nov 7th, 2005, 12:03 am |
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:-
Quick reply to this message  
PHP Syntax
  1. <html>
  2. <head>
  3. <title>Untitled Document</title>
  4. <script language="javascript">
  5. function fillname(val)
  6. {
  7.  
  8.  
  9. document.form1.textname.value=val ;
  10.  
  11. }
  12. </SCRIPT>
  13. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  14. </head>
  15.  
  16. <body>
  17. <form name="form1" method="post" action="">
  18. user email <input type="text" name="txtmail" onChange="fillname(this.value)">
  19. <input type="hidden" name="textname">
  20. </form>
  21. </body>
  22. </html>

Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC