echo "<script>alert('登陆成功!');location.href='../main_teacher.php';</script>"; 200
1个回答
展开全部
echo "<script>alert('登陆成功!');location.href='../main_teacher.php';</script>"
你的../什么鬼 你这里输出的是js语句了
你要的是上一级目录吧
你酌情修改
'main_teacher.php' 相同目录下
‘/main_teacher.php’ 根目录下 就是 http://xxxx.com/main_teacher.php
'/home/main_teacher.php' 就是 http://xxxx.com/home/main_teacher.php
你的../什么鬼 你这里输出的是js语句了
你要的是上一级目录吧
你酌情修改
'main_teacher.php' 相同目录下
‘/main_teacher.php’ 根目录下 就是 http://xxxx.com/main_teacher.php
'/home/main_teacher.php' 就是 http://xxxx.com/home/main_teacher.php
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询