Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Pagenation form coversion.
Old 02-04-2011, 03:53 PM Pagenation form coversion.
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
I am looking for tips to paginate this form. Any suggestions?

Code:
                      <form name='cabinselect' method="get" action="availability-overview.php">
                                <select name="cabin" onchange='cabinselect.submit();'>
                                        <option value='1'>Select Cabin</option>
                                        <option value='1'>1</option>
                                        <option value='2'>2</option>
                                        <option value='3'>3</option>
                                        <option value='4'>4</option>
                                        <option value='5'>5</option>
                                        <option value='6'>6</option>
                                        <option value='7'>7</option>
                                        <option value='8'>8</option>
                                        <option value='9'>9</option>
                                </select>
                        </form>
__________________
.
Village Idiot

Sydpix is offline
View Public Profile Visit Sydpix's homepage!
 
 
Register now for full access!
Old 02-04-2011, 04:04 PM Re: Pagenation form coversion.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Paginate the form????
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 02-04-2011, 04:18 PM Re: Pagenation form coversion.
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Paginate the same requests.

Figured it out. Thanks.

Code:
<?php
$max_cabins = 9; 
echo ($cabin > 1 ? '<a href="?cabin='.($cabin-1).'">' : '').'Prev'.($cabin > 1 ? '</a>' : '');
echo ' | ';
echo ($cabin < $max_cabins ? '<a href="?cabin='.($cabin+1).'">' : '').'Next'.($cabin < $max_cabins ? '</a>' : '');
?>
__________________
.
Village Idiot

Sydpix is offline
View Public Profile Visit Sydpix's homepage!
 
Closed Thread     « Reply to Pagenation form coversion.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11795 seconds with 12 queries