954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Creating a log in/registration page

I need to create a log in page for new customers, where in they provide their address in the US based on the zipcode. Essentially, if a user fills in a zip code, it should automatically populate the city and state.

For some situations, I also want to create a customised table of addresses like if a user gives its company's name then I want to provide 'valid' additional list of values for the company's floor and cube numbers.

Any guidance on writing this code or ready made available code for this would be welcome.

Thanks

mrkumar
Newbie Poster
1 post since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

you'll need a record of all zip codes with their associated city and state. There's a lot. If customers don't have a password or anything to log in with and this just keeps track of them temporarily like a shopping cart or something, then look into sessions. Good tutorials on phpfreaks.com

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

It sounds like from what you want to do, the best way to go about this is storing info in a database (like MySQL) and you'll need to have all the data entered, and possibly use JOINs to match zipcodes with cities and businesses and such.

robbyd
Newbie Poster
12 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You