GET and adding a variable
am 12.07.2007 18:05:55 von GD
I need to add one more variable when i press a button in a form (that
uses as an action GET) . teh problem is that once i press this button
all the other information in the url dissapears. is there an easy way
to add this new variable to the url whithout getting rid of the
previous variables?
i know that i could use $_GET['variable'] with each one the previous
variables and then add them as hidden fields in my form, but i was
wondering if there is a PHP function that would get the whole url for
me and then i could parse the information.
thank you very much,
GD
Re: GET and adding a variable
am 12.07.2007 22:23:47 von Paul Lautman
GD wrote:
> I need to add one more variable when i press a button in a form (that
> uses as an action GET) . teh problem is that once i press this button
> all the other information in the url dissapears. is there an easy way
> to add this new variable to the url whithout getting rid of the
> previous variables?
>
> i know that i could use $_GET['variable'] with each one the previous
> variables and then add them as hidden fields in my form, but i was
> wondering if there is a PHP function that would get the whole url for
> me and then i could parse the information.
>
> thank you very much,
>
> GD
I'm not sure waht this has to do with SQL?