Click to See Complete Forum and Search --> : [RESOLVED] Variable Output Problem


Bobalandi
02-19-2008, 01:54 PM
So, I have this variable $action (let's say it's "<pre>some other text<pre>") and I need it printed, so I do:
<h2>Blah Blah</h2><br />
<?php print $action; ?>

Well, what happens is it is outputted in the wrong order, so when it it outputted, I get:
some other text
Blah Blah
Does anyone know why this is happening?

Bobalandi
02-19-2008, 02:56 PM
I figured out the problem, it was just I was printing when I defined action, I was supposed to be returning.