私はphpコードを持っています:
if($_SERVER['REQUEST_URI'] == '/?task=entry.add&sid=67'){echo'<script type="text/javascript">window.location.assign("/index.php");</script>';}else{echo"";}
if($_SERVER['REQUEST_URI'] == '/?task=entry.add&sid=68'){echo'<script type="text/javascript">window.location.assign("/index.php");</script>';}else{echo"";}
if($_SERVER['REQUEST_URI'] == '/?task=entry.add&sid=69'){echo'<script type="text/javascript">window.location.assign("/index.php");</script>';}else{echo"";}
そして、これをループで実行しようとしています(IDは、たとえば67から100にする必要があります)
<?php
$page = $_POST['id'];
for ($i=1; $i<=$id; $i++){
$url = "/?task=entry.add&sid=".$i."<br/>";
echo'<script type="text/javascript">window.location.assign("/index.php");</script>';}else{echo"";
}
?>
私はもっと何をすべきですか、そして私の問題はどこにありますか?