How to show or redirect to pages based on the zip entered?

[ad_1]

what I wish to do is redirect any user that enters his details to a city personalized to the zip he entered, I wish to show the city name in the page title and maybe a map of the location. I am using actualy using forminator, and think it’s dumb to create every city in the us personalized to a person’s zip, how can I simply show results personalized to someone who entered the zip?

[ad_2]
1 Comment
  1. I don’t use forminator… so this may not work, but I could do it with FLuent, Gravity or a custom form…

    Create a form with an address look-up / auto-complete (optional)… or just let them fill in their address manually, with city REQUIRED.

    Pass those fields to the ‘thank-you’ page as PHP variables.

    Use the form (gravity/fluent do this, I hope forminator does) to populate the page title and city, and pass the zip-code to a map plugin. Then you can have one page with whatever details are needed for the customer no matter what city.

    If forminator can’t populate a page with variables – you’ll need to make your own function to do so (look up ‘get variables’ – it’s tricky as you have to declare them before you can use them.

    If that’s all too much, pass the fields to a cookie, and read them from there – it uglier but easier.

    If you need to change more than the title (city) and map for each city… you’ll have to code that – but forminator could probably do a lot of the work.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer