If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Compare values and redirect to an url

Hi, there

I,ve searched for a couple of hours and have seen an awful lot of webpages this day, still i can not find the answer to, i think, a quite simple question.
First of all, my scripting skills are quite poor. I'm very willing to learn and i am determined to get my question fixed. I am not asking for a complete script, just lokking for some handles and een kick in the right direction.

What's my "problem":
For my website, i want a kind of postal code check.
When someone fills in his postalcode and submitted this, he needs to be directed to another page, with information regarding the region that belongs to his postal code.

I have a wild guess how this should work, but please, correct me if i'm (probably very) wrong:

I will have to create a form, with only one field: postal code.
The "action"of that form has to point to a javascript.
That script compares the value of the filled in postalcode to some document (txt, xml ??) or database.
If the two value match, the user will be directed to another url.

You seem to be on the correct logic path. What I would do (somebody else's opinion would probably differ) is google for a PHP zip code script. You would likely get some sql code to upload to a MySQL database and a corresponding PHP script. The PHP script itself wouldn't be too complex but that data in the db would be enormous. Worth outsourcing in my opinion.

Your push in the direction of PHP was a good one. I've found a script, that looked very promising and changed it a bit for my own purpose.
It contains still an error, but because of the nature of this forum (Javascript) i think i'll have to move to the PHP side, to get some advice !