Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

SimpleMap Plugin Search Form WordPress

  • SOLVED

Hey Fellas,
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
>
On Submit
>
(Another Page) - Showing Map and Results


At the moment it just shows everything on the one page.


Plugin Link:
[[LINK href="http://wordpress.org/extend/plugins/simplemap/"]][[/LINK]]

Thanks in advance!

Answers (2)

2012-09-02

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


floy comments:

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.


floy comments:

and yes. Results on a different page.


floy comments:

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?

2012-09-03

Dbranes answers:

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

[[LINK href="http://wordpress.org/extend/plugins/widgets-on-pages/"]]http://wordpress.org/extend/plugins/widgets-on-pages/[[/LINK]]

You can then put this shortcode into your page to display the Simplemap search

[widgets_on_pages]


Dbranes comments:

ps:
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