Phalanxer Posted June 29, 2012 Share Posted June 29, 2012 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'. Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/ Share on other sites More sharing options...
Barand Posted June 29, 2012 Share Posted June 29, 2012 echoes "a22" when I run it. Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/#findComment-1357902 Share on other sites More sharing options...
Phalanxer Posted June 29, 2012 Author Share Posted June 29, 2012 I have restarted Apache, still the same result. Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/#findComment-1357904 Share on other sites More sharing options...
Barand Posted June 29, 2012 Share Posted June 29, 2012 <?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 ) ) Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/#findComment-1357906 Share on other sites More sharing options...
memfiss Posted June 29, 2012 Share Posted June 29, 2012 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/#findComment-1357907 Share on other sites More sharing options...
Phalanxer Posted June 29, 2012 Author Share Posted June 29, 2012 I have scrapped my days work and starting over from the last point of backup, where everything was working. Thanks for all your input guys. Quote Link to comment https://forums.phpfreaks.com/topic/264982-open-source-software-sucks/#findComment-1357912 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.