Originally posted by Tekron-X
Here hope this is what you need
i.e
<p>You have this <? $var ?> number of cookies</p>
Whilst that would work in IE, it will not work within OPERA or netscape. It should be <? echo $var; ?>.
Anyway, I'm not totally convinced this is what the original request was about.
If I understand correctly, you have a registration form , the contents of which you pass through register.php for processing. Register.php then returns variables based upon the form inputs???
register.php should be the file handling what to do, NOT the html php, so at the top of your register.php file you need to do the data manipulation/checks etc, then based upon the output you then use a header('Location: /success.php'); etc
To be honest, your register.php file should contain the registration form, that way if a failure occurs you can reload the initial state of the form (echo'ing back the user input values) complete with any error messages. Just drop echo commands in to the form at various points where you would like your messages to appear, but the variable names will have no value UNLESS the form has been submitted, and as such would simply not appear on the first pass.
HTH