RE: $_GET vars dropped?
| From: | Richard | Date: | Sun, 19 Apr 2020 15:34:22 +0000 |
| Subject: | RE: $_GET vars dropped? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327099@lists.php.net to get a copy of this message | ||
> Date: Saturday, April 18, 2020 22:20:25 -0700
> From: Jeffry Killen <jekillen@prodigy.net>
>
> I did manage to solve this issue.
>
> It was one of the hardest issues I have had to
> deal with and I am not sure what exactly solved
> it.
>
> I did change the submission method to POST
> and had to chase through a lot of javascript to
> make sure all those ducks were in a row.
>
> I finally got it to work as expected.
>
> But not having any indication of why something
> is not working is the hardest, considering everything
> just before the apparent problem is working correctly.
>
I have always found that a critical part of programming and debugging
is to place "debug" statements strategically throughout my code. That
way I can know exactly what various values are at different points
and can quickly spot when something isn't as expected.
My style is:
if ($debug > N) {
echo <tag & variable>
...
}
where I use different values for N to be able to easily turn
debugging on and off by section or verboseness - based on the value
of $debug that I set.
This takes a lot of the guesswork out of debugging things.