Hi,
don't no much about cookies but it seems you have problem passing your variables to another page.
Check for syntax your php version.
First I don't understand why you are using a form:
a simple hyperkink (with or without an image) should be enough:
create a link like this (ex. I used for my passing variable to a frmed site, and no comments on a framed site please !)
echo "<a href=overview_articles.php?sub_cat_id=" . $sub_cat_id . " target=right>"
Then check if the variable is set on your target page (here overview_articles.php)
// Check if the variable region_id is set
if (isset($_GET['sub_cat_id'])) {
...
} else {
echo "variable not set";
}
or use a form like this
<form method="POST" action="skinselect.php">
<input type="hidden" name="action" value="default"> // or value="midnight" for the other skin
<input type=Submit class=SubmitInput value="Default Skin">
</form>
in your target page skinselect.php use something like this:
// Check if the variable is set
if (isset($_POST['action])) {
// use a switch statement to define what to do depending on the value of the posted variable action
switch ($_POST['action']) {
// what has to be done in case the value is 'default'
case 'default':
...
break;
// what has to be done in case the value is 'default'
case 'midnight':
...
break;
// what has to be done in case of A default value
default:
... // here you could state to use the default skin f.e.
break;
Ad if you want some } else { for error handeling on the posted varaible and/or on the switch-statement
Hope this helps
Gijs