User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,576 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Nov 7th, 2005
Views: 2,126
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:-
php Syntax | 4 stars
  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>
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 5:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC