[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 155
  • Last Modified:

php issue??

See attached code. Note how one of the first things it does is gets the value of paybymail from the query string.

See attached image. This is the actual browser screen shot. Note there is NO query string. But the code behaves as if the variable paybymail is there & set to "on".

Richard Korts
Richard Korts
1 Solution
Andrej PirmanCommented:
Try in lines 11-15:
if ($_GET['paybymail'] == "on") {
	$paybymail = 1;
} else {
	$paybymail = 0;

Open in new window

And in line 47:

if ($paybymail==0) {

Open in new window

It might be that setting variable to "false" means for PHP that variable exists, meaning it is not FALSE.
Richard KortsAuthor Commented:
I'll be darned!. When I saw your solution, I thought, no way.

But it worked.

I am almost POSITIVE that I have used this technique in other places & that it worked.


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now