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>
<input type="text" value="<?PHP if(isset($_SESSION['info']['lastname'])){echo $_SESSION['info']['lastname']; }?>" name="lastname"></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;?>
[red]now when i open "first.php" in IE, the textbox is being filled with[/red]
<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>"
[red]how do i set this problem[/red]
thanks in advance.
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>
<input type="text" value="<?PHP if(isset($_SESSION['info']['lastname'])){echo $_SESSION['info']['lastname']; }?>" name="lastname"></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;?>
[red]now when i open "first.php" in IE, the textbox is being filled with[/red]
<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>"
[red]how do i set this problem[/red]
thanks in advance.