On my home page there is a link to another page.. when I go from my homepage to let say the order page.. the order page is working..
But when I go to my order page directly.. I got an error:
Notice: Undefined index: banner_type on line 33
// line 33
$_SESSION[SESS_PREFIX .'type'] = $_POST['banner_type'];
the prefill must be kozijnen.. what code can i use for the order page to work. when I visit it directly?
if ( isset ( $_SESSION[SESS_PREFIX .'type'] ) ) {
// check flyer
if ( $_SESSION[SESS_PREFIX .'type'] == "kozijnen" ) {
I need to hard code the kozijnen into my order page..
this is a part off the code from my home page:
$value ) { // output //echo ''; } ?> Postcode Straal 10 km 25 km 50 km 100 km Overal Werkzaamheden $value ) { echo ''. $value .''; } ?> --->and this from my order page..
/ chek sessions step1
if ( !isset($_SESSION[SESS_PREFIX .'postal']) OR !isset($_SESSION[SESS_PREFIX .'radius']) OR !isset($_SESSION[SESS_PREFIX .'type']) ) {
// fill in
$_SESSION[SESS_PREFIX .'type'] = $_POST['banner_type'];
// check isset submit
if ( isset ( $_POST['banner_search_submit'] ) ) {
header("Location: ". $_SERVER['REQUEST_URI']);
}
}
// check step 2
if ( isset ( $_POST['gotostep2'] ) OR isset ( $_POST['adjuststep1'] ) ) {
$_SESSION[SESS_PREFIX .'type'] = $_POST['type'];
}
-- / check type isset
//echo ( isset ( $$_SESSION[SESS_PREFIX .'type'] = "kozijnen" ) {
if ( isset ( $_SESSION[SESS_PREFIX .'type'] ) ) {
// check flyer
if ( $_SESSION[SESS_PREFIX .'type'] == "kozijnen" ) {