Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 10th, 2004, 04:38 PM
Smileystuey Smileystuey is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: England
Posts: 7 Smileystuey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>&nbsp;</td>
<td><input name="Submit" type="submit" onclick="MM_validateForm('clientUsername','','R','clientPwd ','','R');return document.MM_returnValue" value="Submit" /></td>
</tr>
</table>
</form>

Reply With Quote
  #2  
Old January 12th, 2004, 07:00 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Did you try naming your forms differently?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > is it possible to have 2 login forms on one page?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway