Problems with executing two different code sets from one PHP file based on passed variable!

Greetings friends. I’m working on my custom invite system again. I’ve got all the code in one PHP file now and then certain parts are executed based on the passed variable. The snippet I’m posting below is the code in question as the other part works. Basically the issue is, the code seems to work visually, and the correct snippet is being run based on the variable, but the validation doesn’t work. When I click “Submit” on the form, it just refreshes the page, and appears to simply ignore the validation code. I’m at a loss. The nearly identical code works if in its own PHP file, but when combined with the other code, it breaks. I debugged it, and get no server error or blank screens. Very strange. Can anyone please help? Thanks!

https://pastebin.com/DisHPnv9

@phdr Any ideas? :sunglasses:

debugging involves checking all the varaibles, at least the once involved in the conditions.

Okay thanks for the tip!

Sponsor our Newsletter | Privacy Policy | Terms of Service