In article <
[email protected]>,
Arno Welzel <
[email protected]> 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
[email protected] Ici
[email protected]
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)