I'm making a page using php and I came to a point where I I have a if with two conditions and I need that if the conditions are true the button sends me to nother page, is that possible?? I have this code right now:
The button:
<form method="post">
<input type="submit" name="submit" class="buttonStyle" />
</form>
The PHP Script:
<?php
$homepage = "/site/nelson.php";
$currentpage = $_SERVER['REQUEST_URI'];
if(isset($_POST['submit']) && $homepage==$currentpage)
{
#Here should be the redirect
}
?>
Hope someone can help me :) Thanks!
EDIT: found the solution, THANKS(!!!!!!!!!!!!) to all!