Re: GET doesn't work as POST

From: Date: Mon, 26 Feb 2007 16:11:57 +0000
Subject: Re: GET doesn't work as POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249454@lists.php.net to get a copy of this message
Otto Wyss wrote:
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"> try actually using echo or print to output the variable contents to the browser. If you look at your source. you will notice there is no value set for action....
... <select name="state" onchange="this.form.submit()"> O. Wyss
-- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree. - Rush

« previous php.general (#249454) next »