Jump to content

Open source software sucks


Phalanxer

Recommended Posts

Why is it that I am always let down by open source software that can't perform a basic instruction?

 

$_POST['tablea'] = 'a22';
$_SESSION['tablea']['tablenumber'] = $_POST['tablea'];
echo $_SESSION['tablea']['tablenumber'];

 

This should echo 'a22' right? Yeah, right... well it echo's '2'.

Link to comment
Share on other sites

<?php
$_POST['tablea'] = 'a22';
$_SESSION['tablea']['tablenumber'] = $_POST['tablea'];
echo $_SESSION['tablea']['tablenumber'];
echo '<pre>';
print_r($_SESSION);
echo '</pre>';
?>

OUTPUT==>

a22
Array
(
    [tablea] => Array
        (
            [tablenumber] => a22
        )

)

Link to comment
Share on other sites

dkd@crautcher-desktop:/var/www/absolux/class$ php -r '
> $_POST["tablea"] = "a22";
> $_SESSION["tablea"]["tablenumber"] = $_POST["tablea"];
> echo $_SESSION["tablea"]["tablenumber"];';
a22

maybe u have some other code after or before ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.