| Post |
|
Guest
| adaptiman 8:09 pm May 19, 2009
| |
|
|
I'm using Wordpress custom field taxonomies to support metadata in my posts so we can run custom searches. The metadata can then be searched using the standard Wordpress query string like this:
http://somedomain.com/?county=Wichita
This is merely a 'Get Method' submit.
I have created a custom search form using cForms as the form creator. But I have not been able to figure out how to get the form to submit the form data in the URL rather than through the 'Post' method.
Is there a way to get cForms to submit the form data in the URL?
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:47 am May 20, 2009
| |
|
|
cforms doesn't support GET, but you can use the redirect to feature together with my-functions.php (logic) to rewrite your default redirect-on-success target http://somedomain.com/ to http://somedomain.com/?county=Wichita
|
|
|
|
|
Guest
| adaptiman 9:46 pm May 20, 2009
| |
|
|
Do you have an example of this? I've looked in the my-functions.php file, but there is no redirect-on-success routine.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 9:57 pm May 20, 2009
| |
|
|
- you need to enable and configure the redirect setting on your form config page
- then edit (uncomment and adapt the parts needed) my-functions.php
check out the logic function…there is a redirect example, unless you're using an old version!
|
|
|
|
|
Guest
| adaptiman 10:53 pm May 21, 2009
| |
|
|
One more question. Is there a cforms variable that contains the URLencoded values from the form that I can append to the URL to create the proper search address?
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:11 am May 23, 2009
| |
|
|
No, you'd have to create those values yourself.
|
|
|
|