Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check username Password and Mothers Maden name 1

Status
Not open for further replies.

Jeremy74

IS-IT--Management
Nov 21, 2001
56
GB
Up until now I have used the rapid development tools in Dreamweaver MX. This has now caught me out, as I need to create a login page which checks Username, Password and mothers madden name. I know how to create a session variable, display fields and such but don't know how to change the field from displaying it to checking it. Can someone tell me please or post a link to a decent tutorial.

Cheers

Jeremy
 
[tt]Have you tried inserting a server behavior that checks the username yet?

if you have

are you now trying to add multiple fields to the check?


T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
No, What I want is a login page (Username and password) but we are also asking for their mothers madden name. This will be checked against what they typed in the join up form before they can login.

Cheers

Jeremy
 
[tt]You can modify the sql in the Check user script when inserting a Check username behavior.


T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
Use the User Authentication Extension in Dreamweaver to set up a log in page, and modify the code from that:

$FF_valUsername=$HTTP_POST_VARS['Username'];
$FF_valPassword=$HTTP_POST_VARS['Customer_Password'];
$FF_valMaden=$HTTP_POST_VARS['Customer_Maden_Name'];

Then modify the SQL that goes to the database running the query:

$FF_rsUser_Source .= " FROM customer WHERE Username='" . $FF_valUsername . "' AND Customer_Password='" . $FF_valPassword . "'" AND Customer_Maden_Name='" . $FF_valMaden . "'";

Obviously there is more code than this on the Serviour Behaviour, but these are the important parts that you would need to modify.

sipps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top