so I want to make a dynamic function. It goes something like this (just some of the code):
$op //operation sent from URL (ie delete)
//some more code junk
echo"http://www.whatever.com/index.php?$op_news";
end of code
now why doesnt delete_news show up in the URL....what do I use to tell php that $op is not $op_news ??
that made no sense to me, is this what you're after?
<a href='?op=delete'>err</a> assume that has been clicked ^^^^^^^ <? echo "http://whatever.com/index.php?{$_GET['op']}_news"; ?>
nogo
got it to work.... i gotta do this:
{$op} without the get stuff
Originally posted by rayk got it to work.... i gotta do this: {$op} without the get stuff
change $_GET to $HTTP_GET_VARS
or update ur PHP and stop living in the stone age!
🙂