Microsoft
Software
Hardware
Network
Question : Global variable dosent work?
Hi!
Have a webpage that i want to transfer variable to index.html page.
The name of the variable is $fylkeid...
Have another variable that works fine, its called $catid
Have defined the variables in config-file.
$catid=$_REQUEST['catid'];
if($catid!="")
$category_id=$catid;
else
$category_id=1;
$smarty->assign('category_
id', $category_id);
$catid1=$_REQUEST['ItemID'
];
if($catid1!="")
$ItemID=$catid1;
$smarty->assign('Item_id',
$ItemID);
// Fylke
$fylkeid=$_REQUEST['fylkei
d'];
if($fylkeid!="")
$fylke_id=$fylkeid;
else
$fylke_id=1;
$smarty->assign('fylke_id'
, $fylke_id);
And i call the index.html like this:
http://www.minlokalavis.no
/lokalavis
//index.ph
p?catid=1&
fylkeid=1
And in my index.html i use this code:
{if $fylkeid eq "1"}
<link href="css/style_singelsamm
en.css" rel="stylesheet" type="text/css" />
{else}
<link href="css/style.css" rel="stylesheet" type="text/css" />
{/if}
Why is the global variable dosent work ?
Answer : Global variable dosent work?
I only have version 12 here.
Try searching the registry for "Agent Directory List" that might do it.
Random Solutions
SBS 2003 Server Down, Help on What to Do?
Is there a way to block all task items issued by people to me in Outlook 2007?
update db
Software to find duplicate files.
ext2online vs resize2fs
How to clean up all my web history and remember password in Firefox and IE?
How to download an xml file in Silverlight application?
SharePoint 2010 search service always been disabled
Quickbooks Database Manager On SBS 2008
Data driven subscription with parameters