Jump to content

Search the Community

Showing results for tags 'pagination search form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi guys, having a small issue and I know how helpful you lot can be so I thought I would chance my arm again! I have a search form on my home page in which the user selects a country and the hotels from that country are displayed on the search page. This is my code: <?php if( isset($_POST['mysearchlocation']) ) { $country = $pages->find("template=hotel, hotel_country=$country, limit=3"); $pagination = $country->renderPager(); foreach($country as $resort) { echo "<li class='result-item star$resort->star_rating'>"; $firstimage = $resort->images->first(); echo "<img src='$firstimage->url'>"; echo "<div class='result_panel'><a>"; if ($resort->favourite) { echo "<h2 class='flagged'>$resort->hotel_name</h2><p>"; } else { echo "<h2>$resort->hotel_name</h2><p>"; } //get area & country name $parents = $resort->parents->slice(2); foreach($parents as $parent) { echo "<a href='$parent->url'>$parent->title</a>,"; } echo "</p></a>"; echo "<img class='star_rating' src='../img/icons/stars_$resort->star_rating.png' >"; echo $resort->hotel_facilities; echo "</div>"; echo "<a class='btn more_info_btn' href='$resort->url'>More info<span class='icon'> ></span></a>"; echo "</li>"; } } echo $pagination; ?> the issue that I am having is that when I select the next page of results, for example page 2, my post variable is obviously lost. Has anyone any ideas on how to work around this because I'm drawing a blank at the moment! Any help would be greatly appreciated, Jamie
×
×
  • Create New...