added default param for to set value if no post or get data found

Ran into a situation where there may not be post or get data coming in, wanted the ability to add a default value.