Re: Passing parameter in Paging
| From: | olinux | Date: | Fri, 28 Dec 2001 22:58:39 +0000 |
| Subject: | Re: Passing parameter in Paging | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15252@lists.php.net to get a copy of this message | ||
Aren't all these form solutions making things more
complex than they need to be? Why not just pass the
parameters in the URL
Use php to echo out start_at and end_at variables
ie. <A
HREF="http://website.com/search.php?keyword=something&start_at=15&end_at=30">2</A>
<A
HREF="http://website.com/search.php?keyword=something&start_at=31&end_at=45">3</A>
etc.
olinux
--- Mihail Bota <mbota@rana.usc.edu> wrote:
> Bogdan, in this respect, I have a question: can I
> pass the values of
> javascript variables to php variables? if yes, how?
>
> Mihai
>
> On Fri, 28 Dec 2001, Bogdan Stancescu wrote:
>
> > I don't understand why you won't use forms with
> buttons and hidden controls
> > since you know about this solution. I have two
> suggestions along this line:
> > 1. You probably don't want buttons on the page --
> you may use image icons
> > instead (similar to a tape recorder's "play" and
> "fast forward" for next page
> > and last page)
> > 2. If you don't want to use images either, you may
> use regular links with
> > "href='javascript:document.nextPage.submit()'"
> where nextPage would be the form
> > name with the page forward data -- and so on.
> >
> > HTH
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com