zip code redirect to page...HELP!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lomster
Forum Newbie
Posts: 2
Joined: Fri Dec 05, 2008 5:09 pm

zip code redirect to page...HELP!

Post by lomster »

Hey PHP Geniuses...
I've got a small problem. I have 8 people who are advisors for 2200 zip codes split between them.

Essentially, I need a simple php script that when a zip code is entered, it forwards the user to the page of their advisors.

IMPORTANT: BECAUSE OF A CMS LIMITATION, I DO NOT HAVE SQL FUNCTIONALITY.

Thanks for all your help!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: zip code redirect to page...HELP!

Post by requinix »

Your CMS sucks.

Store the page-zip code pairs somewhere, then given the zip code look up the page to redirect to.

What else can I say? You haven't described your system.
lomster
Forum Newbie
Posts: 2
Joined: Fri Dec 05, 2008 5:09 pm

Re: zip code redirect to page...HELP!

Post by lomster »

That's exactly what I want to do, but I haven't found a script written like that...can you suggest one?
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: zip code redirect to page...HELP!

Post by Syntac »

In this case, it's probably best to roll your own.
Post Reply