查看完整版本: PHP cannoy modify header information - headers alr


页:

gzjian 发表于 2024-09-21 02:25:28

PHP cannoy modify header information - headers alr



<?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"); 




























页:

查看完整版本: PHP cannoy modify header information - headers alr