hi all,
i dont know what the error with this program.I cannot get the value.
----sample.php-----
-------sample2.php-------
-------damn.php------
wen i press submit button i am not getting the echo value i am not knowing wer the error is....? so can any one...?
thanks in advance...
i dont know what the error with this program.I cannot get the value.
----sample.php-----
Code:
<?php
ob_start();
@session_start();
require_once ("damn.php");
createsessions(sex);
?>
<html>
<body>
<form action="sample2.php" method="post">
<input type="radio" name="sex" value="male" /> Male
<br />
<input type="radio" name="sex" value="female" /> Female
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
Code:
<?php $sex=$_SESSION[sex]; echo $sex; ?>
Code:
<?php
function createsessions($sex)
{
session_register();
$_SESSION["sex"] = $sex;
}
?>
thanks in advance...
Comment