I had asked a question before relating to what I believed to be the issue with my program, but was wrong in my assumption. So no, this is not a repeat of the same question. I had thought that I was using include() because a value wasn’t being sent over, but through debugging I saw that the value of the variable was being lost directly after an if statement(the variable in question being $un):
if(trim($un) != '' && trim($pw) != '' && $password == $pw)
{
include "problem.html";
}
The if statement is at the end of the php file, but I need a variable from this file in another file. How would I go about this?
Check out this on include() and require()
or using $_POST or $_GET