Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #19199 > unrolled thread

Session array passing

Started bydoctor@doctor.nl2k.ab.ca (The Doctor)
First post2022-12-06 01:27 +0000
Last post2022-12-30 18:20 -0800
Articles 6 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  Session array passing doctor@doctor.nl2k.ab.ca (The Doctor) - 2022-12-06 01:27 +0000
    Re: Session array passing Arno Welzel <usenet@arnowelzel.de> - 2022-12-08 14:04 +0100
      Re: Session array passing doctor@doctor.nl2k.ab.ca (The Doctor) - 2022-12-08 13:09 +0000
        Re: Session array passing "J.O. Aho" <user@example.net> - 2022-12-08 16:05 +0100
          Re: Session array passing doctor@doctor.nl2k.ab.ca (The Doctor) - 2022-12-08 20:47 +0000
          Re: Session array passing Ǝ <angel00000100000@mail.ee> - 2022-12-30 18:20 -0800

#19199 — Session array passing

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2022-12-06 01:27 +0000
SubjectSession array passing
Message-ID<tmm5qp$2g2u$5@gallifrey.nk.ca>
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

[toc] | [next] | [standalone]


#19200

FromArno Welzel <usenet@arnowelzel.de>
Date2022-12-08 14:04 +0100
Message-ID<jve5mjFeuqrU1@mid.individual.net>
In reply to#19199
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

[toc] | [prev] | [next] | [standalone]


#19201

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2022-12-08 13:09 +0000
Message-ID<tmsnlk$2ln8$1@gallifrey.nk.ca>
In reply to#19200
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

[toc] | [prev] | [next] | [standalone]


#19202

From"J.O. Aho" <user@example.net>
Date2022-12-08 16:05 +0100
Message-ID<jvecq9F3nbhU2@mid.individual.net>
In reply to#19201
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

[toc] | [prev] | [next] | [standalone]


#19203

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2022-12-08 20:47 +0000
Message-ID<tmtigt$i6c$65@gallifrey.nk.ca>
In reply to#19202
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

[toc] | [prev] | [next] | [standalone]


#19237

FromƎ <angel00000100000@mail.ee>
Date2022-12-30 18:20 -0800
Message-ID<47fc2bb7-3ef7-461e-886c-b324164659a0n@googlegroups.com>
In reply to#19202
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web