View Single Post
Old Apr 22nd, 2005, 8:44 AM   #9
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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.
Pizentios is offline   Reply With Quote