[Mycroft] Mycroft: [Quickstart] feedback from Eneko Alonso

notes at mozdev.org notes at mozdev.org
Mon Feb 13 22:01:46 EST 2006


http://mycroft.mozdev.org/deepdocs/quickstart.html#c185

Hey guys,

I'm usign Drupal on my website. Drupal's search form uses POST method, but it also accepts search queries directly included in the URL.

So I have create a very small redirecting PHP file as this:
[?php
  $keywords = isset($_GET["q"])? $_GET["q"] : "";   header("location:http://spaniards.es/search/node/$keywords");
?]

It should work in any Drupal instalation.
The SCR file should point to this PHP pasing the query words as "q" GET parameter.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1


More information about the Mycroft mailing list