<input name="success_url" id="success_url" value="" type="hidden"> <input name="fail_url" id="fail_url" value="" type="hidden"> <input name="try_to_login" id="try_to_login" value="1" type="hidden"> <table align="center" border="0" cellpadding="0" cell <td width="150"> <div class='dld' <center><label for="pass">Код активации:</label> <form action="" method="post"> <input type="text" name="code"><br><br> <input type="submit" name="ok" value="Активировать анкету"> </form> </div></center>
<input name="success_url" id="success_url" value="" type="hidden"> <input name="fail_url" id="fail_url" value="" type="hidden"> <input name="try_to_login" id="try_to_login" value="1" type="hidden"> <table align="center" border="0" cellpadding="0" cell <td width="150"> <div class='dld' <center><label for="pass">Код активации:</label> <form action="" method="post"> <input type="text" name="code"><br><br> <input type="submit" name="ok" value="Активировать анкету"> if($code == "123123") { Header("Location: $link"); die(); } </form> </div></center>
if($_POST['code'] == "123123") { @header("Location: $link"); die(); } <input name="success_url" id="success_url" value="" type="hidden"> <input name="fail_url" id="fail_url" value="" type="hidden"> <input name="try_to_login" id="try_to_login" value="1" type="hidden"> <table align="center" border="0" cellpadding="0" cell <td width="150"> <div class='dld' <center><label for="pass">Код активации:</label> <form action="" method="post"> <input type="text" name="code"><br><br> <input type="submit" name="ok" value="Активировать анкету"> </form> </div></center>
<?php $link = 'http://example.com'; //куда перенаправлять $code = 12345; //правильный код if($_POST['code'] == $code) { @header("Location: {$link}"); die(); } ?> <input name="success_url" id="success_url" value="" type="hidden"> <input name="fail_url" id="fail_url" value="" type="hidden"> <input name="try_to_login" id="try_to_login" value="1" type="hidden"> <table align="center" border="0" cellpadding="0" cell <td width="150"> <div class='dld' <center><label for="pass">Код активации:</label> <form action="" method="post"> <input type="text" name="code"><br><br> <input type="submit" name="ok" value="Активировать анкету"> </form> </div></center>
header(“HTTP/1.1 301 Moved Permanently”); header(“Location: http://site.com/pagename.html”);
<?php $link = 'http://example.com'; //куда перенаправлять $code = '12345'; //правильный код if($_POST['code'] === $code) { header(“HTTP/1.1 301 Moved Permanently”); header(“Location: $link”); } ?>