|
heh, you can do all sorts of things with php.
oh, and see this part:
[PHP]
echo "\t\t<td><a href=\"www.somedomain/somepage.php?action=viewresult\">$col_value</a></td>\n";
[/PHP]
see the action var after the page name and the ?
you can get the value of that var by doing this:
[PHP]
$mynewvar = $_GET['action'];
//or you could just call the var strait, like into a if statment:
if ($_GET['action'] == "something")
{
//do something.
}
//or you could pass it to a switch (my personaly fav way of doing stuff like that)
switch ($_GET['action'])
{
case "something1":
//do something1
break;
case "something2":
//do something2
break;
}
[/PHP]
not sure if you knew how to do that, just thought i'd post and try and help out :-)
anyways, if you got more questions, done hesitate to post em around here.
also, since this is a php question, i moved it to the php forum :-)
__________________
Profanity is the one language that all programmers understand.
Check out my Blog <---updated Nov 30 2007!
Last edited by Pizentios; Apr 22nd, 2005 at 8:53 AM.
|