Tried the following code as seen in an example:
-------------------------------------------->
<head>
<title>Test</title>
</head>
<body>
<?php if ($color) { ?>
<p><font color="<?php echo $color; ?>">You said your favorite color was <?php echo $color; ?>.</font></p>
<?php } ?>
<form method="post" action="test2.php">
<p>What is your favorite color? <input type="text" name="color" value="<?php echo $color; ?>"></p>
<input type="submit">
</form>
</body>
-------------------------------------------->
The if statement was never true, i e the variable was not created. Thinking that the above code was faulty I tried a whole bunch of other ways to verify that the form variables was created on the fly, this to no luck! I can still get the input data using the $HTTP_POST_VARS[] but as PHP SHOULD create the variables on the fly, I'd like to get help in locating the problem!!
All help is much appricated :-)
Platform is IIS4/PHP4.