I just started using the SimpleMap plugin but am wondering if anyone knows how to send form data from a different page to the page which shows the map (Example below)
(Home page) - Search form
(Another Page) - Showing Map and Results
At the moment it just shows everything on the one page.
Thanks in advance!
Arnav Joy answers:
your plugin link is missing , also please explain your question , do you want to show the result to a different page , then
try <form method="post" action="url of the page" >
see action ="url of the page" just replace this text with the url of the page where you want to send the result after submission
like action = "http://mysite.com/result-page"
let me know if you have any question
Heres the link to the plugin - http://wordpress.org/extend/plugins/simplemap/
I'm not sure if that will work because it updates the map via AJAX or something.
and yes. Results on a different page.
I've added in the search form with the correct action etc but when the form submits it goes to the page but displays no results.
Arnav Joy comments:
can you show me the url?
Here is one easy way:
Just use the Simplemap widget search form (Appearance > Widgets)
and place it on your special page with for example "Widgets on pages" plugin
You can then put this shortcode into your page to display the Simplemap search
you can than view the html source of the generated widget search form.
- this way you can also see the correct html code if you want to modify the form any further