查看: 3268 | 回复: 0

PHP cannoy modify header information - headers alr

发表于   2024-08-23 09:37:28  本帖地址:http://www.zerostudy.net/thread-5320290.html  archiver
#  1 
<?php
require '../mysql_connect.php';
require('../model/functions.php');
include_once '../views/login.html.php';
 if ($_SERVER['REQUEST_METHOD'] == 'POST') {   // 处理表单
    if (isset($_POST['login_submit'])) {
 
        $role $_POST['role'];
        $username $_POST['username'];
        $passwd $_POST['p'];
 
    if( user_login($pdo,$role,$username,$passwd) ){
        setcookie('userName',$name);             
        setcookie('password',$psw);   
        header("location: index.php"); 


游客不能回复帖子,您可以 登录 | 注册
+1
 加载中...