• Session array passing

    From The Doctor@21:1/5 to All on Tue Dec 6 01:27:53 2022
    Has there been a change of passing seesion arrays in 8.1 different from 7.X ? --
    Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca
    Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Happy Christmas 2022 and Merry New Year 2023 Beware https://mindspring.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Doctor@21:1/5 to usenet@arnowelzel.de on Thu Dec 8 13:09:08 2022
    In article <jve5mjFeuqrU1@mid.individual.net>,
    Arno Welzel <usenet@arnowelzel.de> wrote:
    The Doctor, 2022-12-06 02:27:

    Has there been a change of passing seesion arrays in 8.1 different from 7.X ?

    What do you mean with "passing session arrays" exactly? Do you have a
    code example?



    <?=session_start();
    error_reporting(E_ALL);

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Professional Development Solutions - Online Form</title>
    <meta name="description" content="PD Solutions is an educational company that delivers on-line webinars and webcasts to various organizations or people" />
    <meta name="robots" content="index, follow" />
    <link rel="stylesheet" type="text/css" href="css/formscss.css"/>
    <link rel="stylesheet" type="text/css" href="css/formscss2.css"/>
    <link rel="stylesheet" href="css/formsuniform.default.css" type="text/css" media="screen">
    <link rel="stylesheet" href="css/formsuniform.agent.css" type="text/css" media="screen">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    </head>
    <body>
    <?php
    if(!empty($_SESSION['sessiondata'])){
    }

    <div id="wrapper">
    <!--header begins-->
    <?php
    include("includes/header.php");

    <!--header ends-->
    <FORM ACTION="https://www3.moneris.com/HPPDP/index.php" method="post">
    <?php
    if (isset($_POST['submit'])){

    $sessValue = $_POST['sessionid1'];
    $store_id = "storeident";
    $hpp_key = "key";
    $charge_total = $_POST['charge_total'];

    $bill_first_name = $_POST['bill_first_name'];
    $bill_last_name = $_POST['bill_last_name'];
    $bill_company_name = $_POST['bill_company_name'];
    $bill_address_one = $_POST['bill_address_one'];
    $bill_city = $_POST['bill_city'];
    $bill_state_or_province = $_POST['bill_state_or_province'];
    $bill_postal_code = $_POST['bill_postal_code'];
    $bill_phone = $_POST['bill_phone'];
    $email = $_POST['email'];

    <center>
    <!-- Store Settings-->
    <INPUT TYPE="HIDDEN" NAME="ps_store_id" VALUE="<?=$store_id?>">
    <INPUT TYPE="HIDDEN" NAME="hpp_key" VALUE="<?=$hpp_key?>">
    <!------- DEFINE CHARGE TOTAL HERE --->
    <br/><br/><h3>Your Purchase Total Is: </h3> <br/> <h2>$<?=$charge_total?></h2> <INPUT TYPE="hidden" NAME="charge_total" VALUE="<?=$charge_total?>"><br><br> <!-- Unique Order ID -->
    <!--INPUT TYPE="hidden" NAME="order_id" VALUE="<?=$sessValue?>"-->
    <!-- Additional Optional Details -->
    <input type="hidden" name="cust_id" value="<?=$sessValue?>">
    <input type="hidden" name="email" value="<?=$email?>">
    <input type="hidden" name="note" value="">
    <!-- Item Information -->
    <?php
    $items_count = 1;
    $subtotals = 0;
    foreach ($_POST['quantity'] as $key => $value) {

    if( $value > 0){

    if(isset($_POST['with_gst'][$key])){
    $item_price = 63.00;
    }else{
    $item_price = 60.00; //no gst included
    }

    $subtotals = ($item_price * $value);

    ?>
    <input type="hidden" name="quantity<?=$items_count?>" value="<?=$value?>">
    <input type="hidden" name="description<?=$items_count?>" value="<?=$_POST['description'][$key]?>">
    <input type="hidden" name="id<?=$items_count?>" value="<?=$_POST['id'][$key]?>">
    <input type="hidden" name="price<?=$items_count?>" value="<?=$item_price?>">
    <input type="hidden" name="subtotal<?=$items_count?>" value="<?=$subtotals?>">
    <?php
    $items_count++;
    }

    }

    <!-- Billing Information -->
    <input type="hidden" name="bill_first_name" value="<?=$bill_first_name?>"> <input type="hidden" name="bill_last_name" value="<?=$bill_last_name?>">
    <input type="hidden" name="bill_company_name" value="<?=$bill_company_name?>"> <input type="hidden" name="bill_address_one" value="<?=$bill_address_one?>"> <input type="hidden" name="bill_city" value="<?=$bill_city?>">
    <input type="hidden" name="bill_state_or_province" value="<?=$bill_state_or_province?>">
    <input type="hidden" name="bill_postal_code" value="<?=$bill_postal_code?>"> <input type="hidden" name="bill_country" value="<?=$bill_country?>">
    <input type="hidden" name="bill_phone" value="<?=$bill_phone?>">
    <input type="hidden" name="bill_fax" value="<?=$bill_fax?>">
    <?php
    }

    <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Click to proceed to Secure Page"> </center>
    </FORM>
    <?php
    include("includes/footer.php");

    </div>
    </body>
    </html>


    It works in PHP 7.4 but not in PHP 8.1


    --
    Arno Welzel
    https://arnowelzel.de



    --
    Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca
    Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Happy Christmas 2022 and Merry New Year 2023 Beware https://mindspring.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Thu Dec 8 14:04:19 2022
    The Doctor, 2022-12-06 02:27:

    Has there been a change of passing seesion arrays in 8.1 different from 7.X ?

    What do you mean with "passing session arrays" exactly? Do you have a
    code example?


    --
    Arno Welzel
    https://arnowelzel.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From J.O. Aho@21:1/5 to The Doctor on Thu Dec 8 16:05:45 2022
    On 08/12/2022 14.09, The Doctor wrote:
    In article <jve5mjFeuqrU1@mid.individual.net>,
    Arno Welzel <usenet@arnowelzel.de> wrote:
    The Doctor, 2022-12-06 02:27:

    Has there been a change of passing seesion arrays in 8.1 different from 7.X ?

    What do you mean with "passing session arrays" exactly? Do you have a
    code example?



    <?=session_start();
    error_reporting(E_ALL);
    if(!empty($_SESSION['sessiondata'])){
    }


    Did you set the $_SESSION['sessiondata'] value earlier?

    Have you enabled the session use? check your session.use_cookies.

    Have you the right type of save handler for the session
    (session.save_handler)?
    files seems to be the most common type.

    Is the path assigned for session.save_path writeable by the user running
    the php engine (apache/www-data/nobody/...)?

    are you using 'session.cookie_secure = 1' and then use http connection?

    are you using a custom serializing service? check your session.serialize_handler


    --
    //Aho

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Doctor@21:1/5 to J.O. Aho on Thu Dec 8 20:47:25 2022
    In article <jvecq9F3nbhU2@mid.individual.net>,
    J.O. Aho <user@example.net> wrote:
    On 08/12/2022 14.09, The Doctor wrote:
    In article <jve5mjFeuqrU1@mid.individual.net>,
    Arno Welzel <usenet@arnowelzel.de> wrote:
    The Doctor, 2022-12-06 02:27:

    Has there been a change of passing seesion arrays in 8.1 different
    from 7.X ?

    What do you mean with "passing session arrays" exactly? Do you have a
    code example?



    <?=session_start();
    error_reporting(E_ALL);
    if(!empty($_SESSION['sessiondata'])){
    }


    Did you set the $_SESSION['sessiondata'] value earlier?

    Have you enabled the session use? check your session.use_cookies.

    Have you the right type of save handler for the session >(session.save_handler)?
    files seems to be the most common type.

    Is the path assigned for session.save_path writeable by the user running
    the php engine (apache/www-data/nobody/...)?

    are you using 'session.cookie_secure = 1' and then use http connection?

    are you using a custom serializing service? check your >session.serialize_handler


    Will check, but found out from the server side that a new solution is coming out.


    --
    //Aho


    --
    Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca
    Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Happy Christmas 2022 and Merry New Year 2023 Beware https://mindspring.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?xo4=?=@21:1/5 to J.O. Aho on Fri Dec 30 18:20:41 2022
    You !


    On Thursday, December 8, 2022 at 5:05:54 PM UTC+2, J.O. Aho wrote:
    On 08/12/2022 14.09, The Doctor wrote:
    In article <jve5mj...@mid.individual.net>,
    Arno Welzel <use...@arnowelzel.de> wrote:
    The Doctor, 2022-12-06 02:27:

    Has there been a change of passing seesion arrays in 8.1 different from 7.X ?

    What do you mean with "passing session arrays" exactly? Do you have a
    code example?



    <?=session_start();
    error_reporting(E_ALL);
    if(!empty($_SESSION['sessiondata'])){
    }


    Did you set the $_SESSION['sessiondata'] value earlier?

    Have you enabled the session use? check your session.use_cookies.

    Have you the right type of save handler for the session (session.save_handler)?
    files seems to be the most common type.

    Is the path assigned for session.save_path writeable by the user running
    the php engine (apache/www-data/nobody/...)?

    are you using 'session.cookie_secure = 1' and then use http connection?

    are you using a custom serializing service? check your session.serialize_handler


    --
    //Aho

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)