|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
is it possible to have 2 login forms on one page?
Hi i have built 2 individual login pages which on their own work fine. They are connected to my database and individually confirm the username and password fields and take me to the next page.
So i then wanted to put both login forms on the index page. I guess i should say why im doin this in case theres a better way! but bare in mind this is my first application! note: client = property owner customer = holiday customer I have one table for clients and one table for customers(these are the actual table names), both in one database, they are not relational. Both groups will need to login to access their own restricted pages. I thought of maybe a dropdown list where the user picks from either property owner or holiday customer, this chooses the table to query...client or customer table. the output from that variable chosen finishes the code so there is only one form on the page for both user groups, but im not that advanced yet I put both forms on the one page, copied and pasted the form validation and cfif statement above the head tags from one login page then the same from the other page below it. Same with the 2 forms in one div tag. The page displays ok until i test it on the server? any help greatfully recieved!! my login form <form ACTION="<cfoutput>#MM_loginAction#</cfoutput>" name="frm_client_login" id="frm_client_login" method="POST"> <table width="95%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td>User Name </td> <td><input name="clientUsername" type="" id="clientUsername"/></td> </tr> <tr> <td>Password</td> <td><input name="clientPwd" type="password" id="clientPwd"/></td> </tr> <tr> <td> </td> <td><input name="Submit" type="submit" onclick="MM_validateForm('clientUsername','','R','clientPwd ','','R');return document.MM_returnValue" value="Submit" /></td> </tr> </table> </form> |
|
#2
|
||||
|
||||
|
Did you try naming your forms differently?
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > is it possible to have 2 login forms on one page? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|