相关疑难解决方法(0)

使用$ _SESSION来传输数据

我试图在我正在创建的表单输入中使用$ _SESSION但是我无法让它工作并且不知道我做错了什么,它在我将数据传输到下一页时使用了我之前的表单部分 - 但是代码似乎不适用于表单的主要部分.

    <?php

//This includes the variables, adjusted within the 'config.php file' and the functions from the 'functions.php' - the config variables are adjusted prior to anything else.
require('configs/config.php');
require('configs/functions.php');

//Check to see if the form has been submited, if it has we continue with the script.
if(isset($_POST['confirmation']) && isset($_POST['name']) && isset($_POST['email']) && isset($_POST['address1']) && isset($_POST['city']) && isset($_POST['postcode']) and $_POST['confirmation']=='true')
{
    //Slashes are removed, depending on whether magic_quotes_gpc is on.
    if(get_magic_quotes_gpc())
    {
        $_POST['name'] = stripslashes($_POST['name']);
        $_POST['email'] = stripslashes($_POST['email']); …
Run Code Online (Sandbox Code Playgroud)

php mysql session

1
推荐指数
1
解决办法
376
查看次数

标签 统计

mysql ×1

php ×1

session ×1