[eluser]Jim OHalloran[/eluser]
Using PHP's optional parameter feature also works....
Code:
function myfunction($param1, $param2 = FALSE) {
if ($param2 === FALSE) {
// Do something when param2 isn't supplied.
}
}
In this example, $param2 will be assigned the boolean false if it wasn't in the URL, but you can easily change it to be whatever you like.
Jim.