Re: $_POST not working with str_replace

From: Date: Wed, 24 Mar 2004 13:58:03 +0000
Subject: Re: $_POST not working with str_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181375@lists.php.net to get a copy of this message
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. 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. On Mar 23, 2004, at 10:04 PM, PHP Email List wrote:
-----Original Message----- From: John W. Holmes [mailto:holmes072000@charter.net] Sent: Tuesday, March 23, 2004 7:59 PM Like someone else said, you need to whittle your code down to a minimum and do a lot of variable checking along the way. Slowly add code back until you find what's causing the problem. There's no reason using $_GET over $_POST should matter, since you're assigning it to a holding variable, anyhow. What version of PHP are you using?
Alright I'll try it from start, but again, it doesn't make any sense when 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']. I'm just wondering if the RTF format is being screwed up cuz it can't "read" the variables from the URL like you do with GET. I don't know just guessing, but from my experience GET/POST are interchangeable as long as everything in my GET form is received with $_GET['something']. I let everyone know what I come up with. I'm hoping it's something stupid and little like missing punctuation or some easy parse error that maybe isn't showing up under the rtf conversion. Thanks Wolf PS, "this reply better Chris?" :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577


« previous php.general (#181375) next »