ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Submit EE Search from External Site

November 01, 2011 12:30am

Subscribe [2]
  • #1 / Nov 01, 2011 12:30am

    Is it possible to submit an EE search from an external site? For example, the search form in the header of my EE site, when viewing the source, has the action set to ‘http://mysite.com/index.php’ with $_POST[‘keywords’] set to the search value and then some other hidden values that are in the form. I would like a page from an external site to have a search form that will search the EE site and redirect users there.

    I tried putting a form on my 3rd party page with the action set to ‘http://mysite.com/index.php’ (same as EE form) and then I copied the other hidden variables. It worked the first time I tried it, but then after that when submitting the form I received this EE error: The action you have requested is invalid. It appears some of the hidden values have changed.

    Is it possible to achieve what I’m trying to do? Thanks in advance for any help!

  • #2 / Nov 01, 2011 2:17pm

    Sue Crocker

    26054 posts

    About the only thing I can suggest is to try an iframe, but that’s untested. Give it a try - otherwise I don’t have a solution for you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases