RE: [PHP] $_POST not working with str_replace
| From: | PHP Email List | Date: | Wed, 24 Mar 2004 20:15:25 +0000 |
| Subject: | RE: [PHP] $_POST not working with str_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181390@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Brent Baisley [mailto:brent@landover.com]
> A technicality, but GET/POST are not interchangeable, it depends on the
> method declared in your form. I'm sure you meant they were
> interchangeable if you changed your form method.
Right I had mentioned that...
(all I'm doing is changing the action="GET" to action="POST" and on the
script side, changing all my $_GET['items'] to $_POST['items'])
> What is
> interchangeable is $_REQUEST with $_POST or $_GET. You may try using
> $_REQUEST just for testing. If it works, then you could use $_REQUEST
> since it will work with GET or POST variables. Although that's not the
> best idea from a security standpoint.
> Also, have you looked at the web page source that is delivered to the
> browser? The web server may be serving a cached version of the page
> that has the form method set to GET instead of POST.
> Just throwing out some other ideas since you said you've tried most
> everything else.
Thanks Brent for the ideas with the source, I'll try that, and I'll test
that Request idea too. :)