homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

(help) If specific number exists, do this.
Search for number(s) in file

Msg#: 4458011 posted 1:38 am on May 26, 2012 (gmt 0)


I have searched far and wide for a solution to the following but did not find something that worked for me. If someone could help me, would be very much appreciated.

The idea that I have is to create a login page where, if a "specific" pre-determined registration number is given/sent to the user, and it exists in the file, to execute / login rights allowed.

For example, if a user's registration number is 12345 while another is 123, would like to first search to see if the user's number exists, then do something().

Therefore, searching for "12345" would not be the same if "123" exists already, so it has to find a specific number or numbers.

This would be in an existing file.

Thank you. Any help is appreciated, cheers.




WebmasterWorld Administrator incredibill us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4458011 posted 6:05 am on May 27, 2012 (gmt 0)

Just use a standard login script.

All you need to do is create the data in the login database per user.


5+ Year Member

Msg#: 4458011 posted 6:46 pm on May 27, 2012 (gmt 0)

Well, you could just ask the user for the registration number along with user name or email or password or what ever you like.

take the user registration number first and check if it meets your requirement first. if it does continue processing and if it doesn't show error.

Use database instate of storing in files.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved