that above code doesnot working,,,
tell me any simple method so that it will display Your details , your business title ....
Well that probably means that a- you haven't placed the foreach loop in my previous post in all 5 files or b- you did not use the html field names inside the session array or c- you did not put session_start() at the beginning of all 5 files.
If you want a simpler method then first you may want to remove the foreach loop mentioned in my previous post from all your pages. Then place
session_start(); at the top of all of your pages if it does not allready exist. After that place the following code on the next line below session start on page 2:
foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa1'][$keyzz]=$valzz;
}
Then line below session start on page 3:
foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa2'][$keyzz]=$valzz;
}
Then line below session start on page 4:
foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa3'][$keyzz]=$valzz;
}
Then line below session start on page 5
foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa4'][$keyzz]=$valzz;
}
In case you are wondering, page 1 is the first form page and page 2 is second page which has had $_POST submitted to it untill page 5 which display or whatever the results while receiving the posts. Now for the message, the following will do the trick:
$body="title1 \n";
foreach($_SESSION['aa1'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title2 \n";
foreach($_SESSION['aa2'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title3 \n";
foreach($_SESSION['aa3'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title4 \n";
foreach($_SESSION['aa4'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}