thats really strange.. because i already tried all of those! even when i close and open the browser, it doesnt work.. heres my code:
before the second page:
<?php
session_start();
if ($name) {
$SESSION['name'] = "$name";
}
if ($company) {
$SESSION['company'] = "$company";
}
if ($title) {
$SESSION['title'] = "$title";
}
if ($email) {
$SESSION['email'] = "$email";
}
if ($telephone) {
$SESSION['telephone'] = "$telephone";
}
if ($fax) {
$SESSION['fax'] = "$fax";
}
if ($address) {
$SESSION['address'] = "$address";
}
if ($city) {
$SESSION['city'] = "$city";
}
if ($province) {
$SESSION['province'] = "$province";
}
if ($postalcode) {
$SESSION['postalcode'] = "$postalcode";
}
$_SESSION['service'] = "$service";
?>
and then in the bodypage:
<?php
if (!$POST['name']) {
echo "You forgot to enter: <br> your Name.";
}
if (!$POST['email']) {
echo "You forgot to enter: <br> your Email.";
exit;
}
if ($service == "webdesign") {
include ("step2web.html");
exit;
}
if ($service == "hosting") {
include ("step2host.html");
exit;
}
if ($service == "maintenance") {
include ("step2maint.html");
exit;
}
?>
the next page displays all their info... and then when they press submit it sends it (here's one of the final display pages):
before page:
<?php
session_start();
$SESSION['siteusage'] = "$siteusage";
if ($description) {
$SESSION['description'] = "$description";
}
if ($design) {
$SESSION['design'] = "$design";
}
if ($webhosting) {
$SESSION['webhosting'] = "$webhosting";
}
if ($webmaintenance) {
$_SESSION['webmaintenance'] = "$webmaintenance";
}
?>
in page:
<?php
if (!$description) {
echo "You forgot to enter: <br> your Website's Description.";
exit;
}
echo "<b>Information which you have entered:</b>";
echo "<br>Your information:<br>";
if ($name) {
echo "Name: ".$SESSION['name']."<br>";
}
if ($company) {
echo "Company: ".$SESSION['company']."<br>";
}
if ($title) {
echo "Title: ".$SESSION['title']."<br>";
}
if ($email) {
echo "Email Address: ".$SESSION['email']."<br>";
}
if ($telephone) {
echo "Telephone Number: ".$SESSION['telephone']."<br>";
}
if ($fax) {
echo "Fax: ".$SESSION['fax']."<br>";
}
if ($address) {
echo "Address: ".$SESSION['address']."<br>";
}
if ($city) {
echo "City: ".$SESSION['city']."<br>";
}
if ($province) {
echo "Province: ".$SESSION['province']."<br>";
}
if ($postalcode) {
echo "Postal Code: ".$SESSION['postalcode']."<br>";
}
echo "<br>Web Design information:<br>";
echo "Site Usage: ".$SESSION['siteusage']."<br>";
if ($description) {
echo "Website Description: ".$SESSION['description']."<br>";
}
if ($design) {
echo "Design Ideas: ".$_SESSION['design']."<br>";
}
if ($webhosting) {
echo "I need Dylan Stan Media hosting services.";
}
if ($webmaintenance) {
echo "I need Dylan Stan Media maintenance services.";
}
?>
well thats some of the code... this is my first session ever so i might be doing it wrong.. i also am wondering if all sessions use cookies? this is a slightly urgent project... so all help will be GREATLY APPRECIATED! 😃 thanks