Re: GET doesn't work as POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/24/07, Otto Wyss <otto.wyss@xxxxxxxxxx> wrote:

With method="post" just $kind works fine (register_global) yet I've also
tried any combination of $_GET['kind'] and $_POST['kind']. With
method="get" it doesn't work.

O. Wyss

Peter Lauri wrote:
> How are you fetching the GET and POST? With $_GET and $_POST?
>
> Best regards,
> Peter Lauri
>
> www.dwsasia.com - company web site
> www.lauri.se - personal web site
> www.carbonfree.org.uk - become Carbon Free
>
>
>
> -----Original Message-----
> From: Otto Wyss [mailto:otto.wyss@xxxxxxxxxx]
> Sent: Saturday, February 24, 2007 12:51 PM
> To: php-general@xxxxxxxxxxxxx
> Subject:  GET doesn't work as POST
>
> On the page
>
>
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.php&kind=
> regions
>
>
> I have a form with method="post" and action="<?PHP $_SERVER['PHP_SELF'];
> ?>". While it works fine this way, as soon as I change the form to
> method="get" it looses the parameter "kind" when I change e.g. the
> second parameter from "-Alle-" to "Gültig". Has anybody an idea why it
> works with POST but not with GET?
>
> <form action="<?PHP $_SERVER['PHP_SELF']; ?>" method="get">
> ...
>   <select name="state" onchange="this.form.submit()">
>
> O. Wyss
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



...do you need to run urlencode() on the stirng you pass via GET?




--
http://www.web-buddha.co.uk

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux