mac007 Posted December 5, 2010 Share Posted December 5, 2010 OK, have no idea what's going on... I've done this a million times... why wont this output!?? I must have a major brain meltdown and dont know it yet!!! <?php // this echoes just fine: echo $_POST['testfield']; // but this wont echo: echo if (isset($_POST['testfield'])) { $_POST['testfield'] = $test; } echo $test; /// or even this DOESNT echo either!: $_POST['testfield'] = $test; echo $test; ?> Quote Link to comment https://forums.phpfreaks.com/topic/220715-ok-this-is-crazy-why-wont-this-echo-simple-post-variable-echo/ Share on other sites More sharing options...
.josh Posted December 5, 2010 Share Posted December 5, 2010 expressions are read left to right. You are assigning the value of $test to your post var, you need to be doing it other way around Quote Link to comment https://forums.phpfreaks.com/topic/220715-ok-this-is-crazy-why-wont-this-echo-simple-post-variable-echo/#findComment-1143131 Share on other sites More sharing options...
mac007 Posted December 5, 2010 Author Share Posted December 5, 2010 ay ay ay.. I just realized that. Wow... that's right... cant believe such a simple thing knock me down so hard, I guess in my case once a beginner, always a beginner!!! scary thanks, Crayon Quote Link to comment https://forums.phpfreaks.com/topic/220715-ok-this-is-crazy-why-wont-this-echo-simple-post-variable-echo/#findComment-1143132 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.