On Sat, February 24, 2007 1:50 pm, Larry Garfield wrote:
Yes, you can end up with both a GET and a POST. (I'm not sure if it's
technically legal in the HTTP standard, but it can happen in practice,
IIRC.)
Having GET data included with a POST request, where the GET is just
part of the URL, is
Otto Wyss wrote:
On the page
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.phpkind=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
On the page
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.phpkind=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.
24, 2007 12:51 PM
To: php-general@lists.php.net
Subject: [PHP] GET doesn't work as POST
On the page
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.phpkind=
regions
I have a form with method=post and action=?PHP $_SERVER['PHP_SELF'];
?. While it works fine this way, as soon
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:[EMAIL PROTECTED]
Sent: Saturday, February 24, 2007 12:51 PM
To: php-general@lists.php.net
Subject: [PHP] GET doesn't work as POST
On the page
On 24/02/07, Otto Wyss [EMAIL PROTECTED] 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
Try $_GET[kind]
Dotan Cohen
Also, if you're using the variable in a print string, then you'll need
to exit the string, like so:
$print Hello, $kind!;
would become:
$print Hello, .$_GET[kind].!;
Dotan Cohen
http://easyanswers.info
http://nirot.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Subject: [PHP] GET doesn't work as POST
On the page
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.phpkind=
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
On 2/24/07, Dotan Cohen [EMAIL PROTECTED] wrote:
Also, if you're using the variable in a print string, then you'll need
to exit the string, like so:
$print Hello, $kind!;
would become:
$print Hello, .$_GET[kind].!;
Dotan Cohen
http://easyanswers.info
http://nirot.com
--
PHP General Mailing
On 24/02/07, Dave Goodchild [EMAIL PROTECTED] wrote:
Or just interpolate it like so:
print Hello, {$_GET['kind']}!;
Nice, I didn't know that.
Dotan Cohen
http://lyricslist.com/
http://what-is-what.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Dotan Cohen wrote:
Try $_GET[kind]
Tried, doesn't help.
O. Wyss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Otto Wyss írta:
Dotan Cohen wrote:
Try $_GET[kind]
Tried, doesn't help.
O. Wyss
echo XMP;
print_r($_REQUEST);
echo /XMP;
and think...
t
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 24/02/07, Pintér Tibor [EMAIL PROTECTED] wrote:
echo XMP;
print_r($_REQUEST);
echo /XMP;
and think...
t
Maybe you meant:
?php
echo pre;
print_r($_REQUEST);
echo /pre;
?
Dotan Cohen
http://lyricslist.com/lyrics/lyrics/137/12/aaliyah/age_ain_t_nothing_but_a_number.html
Pintér Tibor wrote:
echo XMP;
print_r($_REQUEST);
echo /XMP;
and think...
After reload
Array
(
[page] = bvallist.php
[kind] = regions
...
)
After change in form with method=get
Array
(
[state] = validated
...
)
After change in form with method=post
Array
(
[page] =
On 24/02/07, Otto Wyss [EMAIL PROTECTED] wrote:
Pintér Tibor wrote:
echo XMP;
print_r($_REQUEST);
echo /XMP;
and think...
After reload
Array
(
[page] = bvallist.php
[kind] = regions
...
)
After change in form with method=get
Array
(
[state] = validated
...
)
After
Dotan Cohen wrote:
On 24/02/07, Otto Wyss [EMAIL PROTECTED] 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
Try $_GET[kind]
Dotan Cohen
What I don't understand is why you're getting kind in the first place at all.
The form you're referring to, I presume, is this one (simplified HTML to
avoid word wrapping in email):
form name=find action= method=post style=background-color:#EE
fieldset
legendRegionen suchen mit .../legend
17 matches
Mail list logo