Development


📖 Posts | 📎 Development | 🔖 php

Handle web parameters gracefully in PHP

Handle web parms (Call as: myParms('report');) # Ensures that the given parm is always set function myParms($var) { global $$var; if(isset($_REQUEST[$var])){ $$var=$_REQUEST[$var]; } else { $$var=''; } }