passing value in query string
Posted: Sun Mar 21, 2010 3:35 am
hi guys!!
I am having a tough time in automatically passing a variable from one page to another through query string.
For instance, in the following code when the case is modify (the following code is in the index.php and $catId is the value obtained when a user clicks modify link in the index.php), i would like to pass the $catId automatically to modify.php without the user knowing anything about what's goin on...
I am having a tough time in automatically passing a variable from one page to another through query string.
For instance, in the following code when the case is modify (the following code is in the index.php and $catId is the value obtained when a user clicks modify link in the index.php), i would like to pass the $catId automatically to modify.php without the user knowing anything about what's goin on...
i perceived a wild idea(i'm a php newbie) as follows:case 'modify' :
$catId=$_GET['catId'];
$content = 'modify.php';
$pageTitle = 'Shop Admin Control Panel - Modify Category';
break;
but that din't work.....so pls help guys.....case 'modify' :
$catId=$_GET['catId'];
$content = 'modify.php?catId=$catId';
$pageTitle = 'Shop Admin Control Panel - Modify Category';
break;