I have an if statement which i want when it is true to have a pop up a form in which the user can input some information. How will i go about this in php…
See the below example
$myvar = false;
if ($myvar) {
// NORMAL HTML OR PHP CODE HERE
} else {
// DO SOMETHING ELSE
}
The value of $myvar will be determined by your logic you have coded. The example above shows the true content first then the false, you don’t need to use for example
if ($myvar == true) {
as using the first example is equal to the same outcome.