Okay the code is,
code in first.php
<?PHP
session_start();
include("script.php");
?>
<form action="script.php" method=POST>
<input type="text" value="<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>" name="firstname">
</form>
i have saved the file in php and the "script.php" page has all the code related to intialising the sessions in php like so
code in script.php
<? $info=new array();
$info['firstname]=$_POST['firstname'];
$info['lastname]=$_POST['lastname'];
session_start();
$_session['info']=$info;
?>
now when i open "first.php" in IE, the textbox is being filled with
<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>"
why is it so.thanks in advance.