here is a simple example snippet which uses $_GET and switch...
sample snippet which uses $_GET to grab param value
sample usage - add the call below to any
uncached page (id 3 for this example)
[[do_show_message]]
then use the following url to send the snippet some sample data to print
http://www.your.com/index.php?id=3¶m=email
// to add a new param copy this whole block of code and rename the param
$param = $_GET['param'];
switch ($param) {
case""; $output =""; break;
case"name"; $output ="a Name"; break;
case"email"; $output ="an Email Address"; break;
case"message"; $output ="a Message"; break;
case"nameemail"; $output ="a Name and an Email Address"; break;
case"namemessage"; $output ="a Name and a Message"; break;
case"emailmessage"; $output ="an Email Address and a Message"; break;
case"nameemailmessage"; $output ="a Name, an Email Address, and a Message"; break;
default: $output="";
}
// copy to here and add the new block before the return
return $output;
using the above format, add as many parameters as you want, just name the switch($param) appropriately.
hope that helps a little anyway...