Results 1 to 4 of 4

Thread: Issue with search form not passing on keywords

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    106

    Default Issue with search form not passing on keywords

    I've created a custom search field to include in the header on a site, following this tutorial (as usual)
    http://dev.typolight.org/wiki/TutorialsCustomSearchForm

    It used to work, but for some reason has stopped. I've just created another form from scratch -- also doesn't work.
    http://xrl.us/beydhr

    There is one instance of the form in the header and another in the footer. Does someone have an idea what's wrong here? Many thanks for any help.

  2. #2
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Issue with search form not passing on keywords

    There is a much easier way to do it:

    Code:
    <form method="get" action="contact">
    <div class="formbody">
      <input type="text" value="" class="text" name="keywords" />
      <input type="submit" class="submit" value="Search" />
    </div>
    </form>

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    106

    Default Re: Issue with search form not passing on keywords

    Thanks for your answer, Leo. Looking at your code made me realise that 'Submission method' was set to POST instead of GET. ops:

  4. #4
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Issue with search form not passing on keywords

    Quote Originally Posted by spirelli
    'Submission method' was set to POST instead of GET. ops:
    That is actually correct for the solution described in the tutorial. It is just much easier to do it my way :lol:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •