私はphpを使用してページを作成していますが、IIに2つの条件がある場合に到達しました.条件が真の場合、ボタンが別のページに移動する必要があります.それは可能ですか?? 私は今このコードを持っています:
ボタン:
<form method="post">
<input type="submit" name="submit" class="buttonStyle" />
</form>
PHP スクリプト:
<?php
$homepage = "/site/nelson.php";
$currentpage = $_SERVER['REQUEST_URI'];
if(isset($_POST['submit']) && $homepage==$currentpage)
{
#Here should be the redirect
}
?>
誰かが私を助けてくれることを願っています:)ありがとう!
編集:解決策を見つけました、ありがとう(!!!!!!!!!!!!)すべてに!