I only know of 2 main methods of jumping to a different web page from within a php script:-
- Clicking a link eg print(‘<a href=“index.htm”>Home</a>’);
- Clicking the Submit button in a form roughly like:-
(eg
…
?> <form method=‘post’ action=‘newpage.htm’>
<b>Email</b><br>
<input type=“text” name=“email” size=40>
…
<input type=“submit” value=" Send ">
<?php
etc etc
I would like to be able to have a script which can navigate to a new site in response to an IF statement not involving operator intervention. Something like this:-
if ( $a > $b) {
“jump-to-newpage.htm”
}else{
" jump-to-otherpage.php"
}
Question: How do I code the quoted actions above? Is there perhaps, an effective function like "Exec(“newpage.htm”, $params); ?