mikegeorge2
asked on
Displaying WP Categories based on query string
Hi. I have a form that is going to pass it's data via a query string.
So, when somebody hit submit:
It is going it's going to go SOMEWHERE, with the user "state" in the string.
In Wordpress, the post archives are divided by categories (amongst other things)
So if I have a category page that looks like this:
http://azwm.com/states/arizona
I would want the form to send the person to the link above, if the person chooses "Arizona" as their home state.
I know what you are thinking! But I can't do anything on the form page or in the form logic. It's just not an option.
So...
I think I need to send them to a page something like:
azwm.com/redirect.php?stat e=AZ
On that page, I would like a 3 or 4 second time-out, maybe show an animated gif like the computer is "thinking" and then send them to:
http://azwm.com/states/arizona
Thank you in advance! It is very much appreciated.
So, when somebody hit submit:
It is going it's going to go SOMEWHERE, with the user "state" in the string.
In Wordpress, the post archives are divided by categories (amongst other things)
So if I have a category page that looks like this:
http://azwm.com/states/arizona
I would want the form to send the person to the link above, if the person chooses "Arizona" as their home state.
I know what you are thinking! But I can't do anything on the form page or in the form logic. It's just not an option.
So...
I think I need to send them to a page something like:
azwm.com/redirect.php?stat
On that page, I would like a 3 or 4 second time-out, maybe show an animated gif like the computer is "thinking" and then send them to:
http://azwm.com/states/arizona
Thank you in advance! It is very much appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
And I meant to say thank you.
So. Thank you!
So. Thank you!
The code needs to go into whatever page processes the submitted form. So you could put it in redirect.php and set the form action that way:
<form action="redirect.php" method="get">
<form action="redirect.php" method="get">
ASKER
Okay! Let me give it a shot.
ASKER
Sorry it took so long for me to get back to this...
ASKER
Or does this do it in one step based on the query string?