Zip code in text field maps to a article page

rowby 05 Apr, 2010
Hello,

Is this possible in Chronoforms?

Hello,

I need to be able to create a form with a text field where the person types in a zip code and depending on the zip code, upon submit they go to a specific Joomla article page.

There may be multiple zip codes that go to the same page. For example, in Los Angeles they might type

90049
90012
90043
... and upon submit they would be taken to the same html " los-angles.html" page.

(btw, I don't want to use a drop down field.)

I assume an xml file would be used to make this happen, by mapping, but I am not sure.

Any suggestions?

Thanks

Rowby
GreyHead 06 Apr, 2010
Hi Rowby,

Yes you can do that. You'll need to add the PHP in the onSubmit box to look up the correct url. The easiest way is probably to use a database table to set up the correspondences.

Bob
This topic is locked and no more replies can be posted.