back again ;
I will start immediately
The problem is that I have 3 different pages (classic, business and VIP) which links to the contact.php page
and in these 3 pages there are 3 different banners, menu and footer. And in the (3) footer file there is one common link to the contact page
what i did was from the Classic footer i passed this value
<a href="contacts.php?frompage=Classic" class="bottom_link">contact</a>
and from the business footer i passed this
<a href="contacts.php?frompage=Business" class="bottom_link">contact</a>
and from VIP footer i passed this
<a href="contacts.php?frompage=VIP" class="bottom_link">contact</a>
and in the contacts.php page i did this
<?php $mypage = $_REQUEST['frompage']; ?>
and from this variable i managed the header, menu and footer
<?php
if ($mypage=='Classic')
{
include("includes/header_classic.php");
}
elseif ($mypage=='Business')
{
include("includes/header_business.php");
}
elseif ($mypage=='VIP')
{
include("includes/header_vip.php");
}
?>
same code follows for menu and footer
But what happened is when i Submit the form and save the information in database (all the values) gets saved, the header, menu and the footer gets lost...
I know because while submitting $mypage variable gets blank and due to this the headers are not showing, how shall i retain the value from this variable while i submit the form or the page refreshes..
Please someone help...