Re: [PHP] GET doesn't work as POST

2007-02-27 Thread Richard Lynch
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 perfectly normal and spec in the RFC, last I
checked.

If you manage to have POST data included with a GET request, I'd be
looking for a new web-server software, I think...

Your browser SHOULD just append the INPUT as more GET args with a GET.

If your *JAVASCRIPT* does not do that correctly, then, really, we
cannot begin to help you here, as you've got [bleeped] up javascript,
so take it to a JS list/forum/guru.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] GET doesn't work as POST

2007-02-26 Thread Jim Lucas

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="?>". 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?



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



...
 

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

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Larry Garfield
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):



Regionen suchen mit ...


 
Verband: Fussballverband Region Zrich (FVRZ)  



- Alle -
Gel�cht
Eingetragen
Gltig





From that, you shouldn't be submitting a kind variable either way.  All I can 
think of is the PHP_SELF submission, which would include the same GET query 
as you used to get to that page.  I don't recall off hand if PHP_SELF 
includes the full URI or not.  

Try this: 

print_r($_GET);
print_r($_POST);
print_r($_REQUEST);

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.)  
My best guess at the moment is that "kind" is ending up in the wrong one 
somehow.


On Saturday 24 February 2007 4:51 am, 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=" ?>". 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?
>
> 
> ...
>   
>
> O. Wyss

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Jürgen Wind



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
> 
> http://lyricslist.com/lyrics/artist_albums/299/krauss_alison.html
> http://what-is-what.com/what_is/kernel.html
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
why should $_GET["kind"]  work better than $_GET['kind'] ?
-- 
View this message in context: 
http://www.nabble.com/GET-doesn%27t-work-as-POST-tf3283323.html#a9135932
Sent from the PHP - General mailing list archive at Nabble.com.

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Jürgen Wind



Dotan Cohen wrote:
> 
> On 24/02/07, Pintér Tibor <[EMAIL PROTECTED]> wrote:
>> echo "";
>> print_r($_REQUEST);
>> echo ";
>>
>> and think...
>>
>> t
>>
> 
> Maybe you meant:
> 
>  echo "";
> print_r($_REQUEST);
> echo ";
> ?>
> 
> Dotan Cohen
> 
> http://lyricslist.com/lyrics/lyrics/137/12/aaliyah/age_ain_t_nothing_but_a_number.html
> http://what-is-what.com/what_is/website.html
> 
> 
did you check it ? I never heard of XMP before, but
 and  work equally well! 
>echo ";
will throw an error.
-- 
View this message in context: 
http://www.nabble.com/GET-doesn%27t-work-as-POST-tf3283323.html#a9135891
Sent from the PHP - General mailing list archive at Nabble.com.

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen

On 24/02/07, Otto Wyss <[EMAIL PROTECTED]> wrote:

Pintér Tibor wrote:
> echo "";
> print_r($_REQUEST);
> echo ";
>
> 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] => bvallist.php
[kind] => regions
[state] => validated
...
)

Yet I still have no idea why GET and POST are different.



It appears that the form is not sending the data. What is the entire
html of the form (inciuding javascript)?

Of course, this is not a php problem.

Dotan Cohen

http://what-is-what.com/what_is/yahoo.html
http://faq-google.com


Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss

Pintér Tibor wrote:

echo "";
print_r($_REQUEST);
echo ";

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] => bvallist.php
   [kind] => regions
   [state] => validated
   ...
)

Yet I still have no idea why GET and POST are different.

O. Wyss

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen

On 24/02/07, Pintér Tibor <[EMAIL PROTECTED]> wrote:

echo "";
print_r($_REQUEST);
echo ";

and think...

t



Maybe you meant:

";
print_r($_REQUEST);
echo ";
?>

Dotan Cohen

http://lyricslist.com/lyrics/lyrics/137/12/aaliyah/age_ain_t_nothing_but_a_number.html
http://what-is-what.com/what_is/website.html


Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Pintér Tibor

Otto Wyss írta:

Dotan Cohen wrote:

Try $_GET["kind"]


Tried, doesn't help.

O. Wyss


echo "";
print_r($_REQUEST);
echo ";

and think...

t

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen

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: http://www.php.net/unsub.php



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild

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 List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Or just interpolate it like so:

print "Hello, {$_GET['kind']}!";








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


Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild

On 2/24/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

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:[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
>
>
http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.php&kind=
> regions
>
>
> I have a form with method="post" and action=" ?>". 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?
>
> 
> ...
>   
>
> 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


Re: [PHP] GET doesn't work as POST

2007-02-24 Thread 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: http://www.php.net/unsub.php



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen

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

http://lyricslist.com/lyrics/artist_albums/299/krauss_alison.html
http://what-is-what.com/what_is/kernel.html

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



Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss
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:[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

http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.php&kind=
regions 



I have a form with method="post" and action="?>". 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?



...
  

O. Wyss



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



RE: [PHP] GET doesn't work as POST

2007-02-24 Thread Peter Lauri
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:[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

http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.php&kind=
regions 


I have a form with method="post" and action="". 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?


...
  

O. Wyss

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

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