How can i open another webpage if a varaiable is not like expected, and in the same window?
I have tried variants of:
if ($variable <> 2 ) { 'window.location.replace("https://www.somwhere.no/somepage.php","_self")'; }
I usually get just a stop in the current webpage. I am trying to send the command to the user, to load an other page instead.