Hi Jesse!
I tried your code but it doesn't seem to work.....not because your code is incorrect but that i misinterpreted my logic. So still I am not able to get the stuff working as desired.
Actually, "modify.php" is a page where users don't have to view(or do anything else).....its more of a template which contains a form and where certain procedures take place and for those procedures to take place.....$_GET['catId'] is required......
this page is then assigned to $content in the case and later when the switch case exits.....
i use the function
Code: Select all
//after exiting the switch call the templating file
require_once '../include/template.php';
the snippet of the template.php looks as follows
Code: Select all
//the template.php is a templating file which i use for all other pages add.php,delete.php etc
<td> width="600" valign="top" class="contentArea"><table width="100%" border="0" cellspacing="0" cellpadding="20">
<tr>
<td>
<?php
require_once $content;
?>
</td>
</tr>
what i want is not to redirect a user to the modify.php page (as i mentioned in the subject....pardon me).....only just to pass the $catId variable using get method, handle some stuffs there and then assign the page to the $content back in the index.php....and all this without any user involvement.
That means when the user click the modify link in the index.php all the work should be done and the user should see only the template.php that displays contents of the modify.php
If you still don't understand yet can i paste few code snippets so that you can understand the abstract?