Re: why doesn't this work
| From: | CPT John W. Holmes | Date: | Tue, 15 Apr 2003 20:48:19 +0000 |
| Subject: | Re: why doesn't this work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144023@lists.php.net to get a copy of this message | ||
> the code listed below works, if you pass variables to it through the url
line in the browser (i.e., http://
>
mysite.com/thispage.php?orderid=98&BS_request=verify&order-id=98&request=ver
ify&cpi.card-state=
> ID&ms.merchant-id=MSJ&price=50.00......), but will not work if you pass
these variables to the page
> through a POST operation. i'm not sure what's wrong with the page. it's
a credit card validation page.
> i'm attempting to migrate it off a server with register globals on to a
server with register globals off
You need to start debugging. HOW does it "not work"? If you print_r($_POST)
at the beginning of the page when you know you've used method=POST, does it
have any values within it? What web server are you using, what version? What
version of PHP?
Just glancing through the code, it _should_ work, since $_REQUEST has both
GET and POST (and cookie) data.
---John Holmes...