php 此网页包含重定向循环
<html><head><metacharset=utf-8></head><h1>英汉词典</h1><formaction="process.php"method="p...
<html>
<head>
<meta charset=utf-8>
</head>
<h1>英汉词典</h1>
<form action="process.php" method="post">
请输入:<input type="text" name="ci">
<select name="sel">
<option value="entoch">英对中</option>
<option value="chtoen">中对英</option>
</select>
<input type="submit" value="翻译">
</form>
<?php
require_once 'process.php';
if (!empty($_GET['get'])){
echo $_GET['get'];
}
?>
</html>
<?php
require_once 'fang.php';
header("content-type:text/html;charset=utf-8");
if (!empty($_POST['ci'])){
$str=$_POST['ci'];
$sel=$_POST['sel'];
$get=get($str, $sel);
header("location:view.php?get=$get");
exit();
}else {
$get="没有";
header("location:view.php?get=$get");
exit();
}
?> 展开
<head>
<meta charset=utf-8>
</head>
<h1>英汉词典</h1>
<form action="process.php" method="post">
请输入:<input type="text" name="ci">
<select name="sel">
<option value="entoch">英对中</option>
<option value="chtoen">中对英</option>
</select>
<input type="submit" value="翻译">
</form>
<?php
require_once 'process.php';
if (!empty($_GET['get'])){
echo $_GET['get'];
}
?>
</html>
<?php
require_once 'fang.php';
header("content-type:text/html;charset=utf-8");
if (!empty($_POST['ci'])){
$str=$_POST['ci'];
$sel=$_POST['sel'];
$get=get($str, $sel);
header("location:view.php?get=$get");
exit();
}else {
$get="没有";
header("location:view.php?get=$get");
exit();
}
?> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询