gpt4 book ai didi

PHP 注册成功脚本不工作

转载 作者:行者123 更新时间:2023-11-29 01:58:53 26 4
gpt4 key购买 nike

注册后没有“注册成功”消息,也没有重定向到 index.php。需要帮助,请。

<?php
include("connect.php");

if (isset($_POST['save']))
{
addcustomer($_POST['firstname'],$_POST['middlename'],$_POST['lastname'],
$_POST['email'],$_POST['username'],$_POST['password'],
$_POST['age'],$_POST['gender'],$_POST['barangay'],
$_POST['com_address']);
$success = "<script language='javascript' >
alert('Register Succesfully')
window.location='index.php'
</script>";
}
?>

最佳答案

需要输出$success变量

echo $success;print $success;

之前

关于PHP 注册成功脚本不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20450161/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com