HighDots Forums  

check for member

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss check for member in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eaglemon
 
Posts: n/a

Default check for member - 07-01-2005 , 10:12 PM






I have a website (http://www.dragonearthonline.com) for an online game. Lets
say someone runs into a person that they think they know because of the
username. What if there are multiple people who have that username? This could
turn out into multiple things... How do I check if the username the user wants
is already taken, and display a message that says "This username is already
taken."?


Reply With Quote
  #2  
Old   
Nancy Gill
 
Posts: n/a

Default Re: check for member - 07-01-2005 , 10:54 PM






You probably want to establish authentication based on a combination of user
name and password rather than just username .. unless your username is
something like an email or johndoe (AT) yourcompany (DOT) com .. the likelihood of a
duplicate of that username is highly unlikely.

You set up a routine that compares the username in the form with the
username in the database and response.write "this username is already taken
if txtusername (form variable) is like username (database table value).


--
Nancy Gill
Team Macromedia Member: Dreamweaver MX/UltraDev
http://www.macromedia.com/go/team/
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"Eaglemon" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I have a website (http://www.dragonearthonline.com) for an online game.
Lets
say someone runs into a person that they think they know because of the
username. What if there are multiple people who have that username? This
could
turn out into multiple things... How do I check if the username the user
wants
is already taken, and display a message that says "This username is
already
taken."?




Reply With Quote
  #3  
Old   
gareth
 
Posts: n/a

Default Re: check for member - 07-03-2005 , 03:56 PM



I replied to your later post, but again this is something the PHP Login
Suite will do for you. See your later post for full details.


--
Gareth - TMM Dreamweaver
http://www.dreamweavermxsupport.com/
http://www.garethdp.com/

PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
http://www.phploginsuite.co.uk/

Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.