You are here: Re: how do I append a variable to a url that already contains variables? « HTML « IT news, forums, messages
Re: how do I append a variable to a url that already contains variables?

Posted by Neredbojias on 12/19/06 06:28

To further the education of mankind, "PseudoMega" <pseudomega@gmail.com>
vouchsafed:

> I'm working with a PHP page I wrote which searches through records in a
> MySQL database.
>
> I have a <form method="post"> which currently passes all of search
> variables into the session array. I'd like to change the form to GET
> instead of POST so that all of the variables are in the URL.
>
> My problem is that I have already been using pagination code which
> creates links like <a href="?page=2">. With all of the other variables
> in the session array, it works fine. But moving to the GET method, I
> need to append that "?page" variable to the existing URL with the other
> variables.
>
> I think I may have skipped over this chapter in all of my studies
> because I just have no idea how to pull it off :)
>
> Can anyone point me in the right direction?

Generally it's done so:

<a href="xxx?page=2&chapter=5>

--
Neredbojias
Infinity has its limits.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация