On Sat, 1 Feb 2003, CF High wrote:
> Hey all.
>
> In cold fusion I was able to define a default value with the <cfparam name =
> "test" default = "myValue"> tag
>
> When I passed the variable "test" via a form or query string, it would over
> ride the parameter value.
>
> How can I do this in PHP? I looked in PHP manual for param, default, etc.,
> but could find no equivalent.
>
> Any ideas?
if (!isset($_REQUEST['rvar']) || inappropriate($_REQUEST['rvar'])) {
$rvar = 'default';
} else {
$rvar = $_REQUEST['rvar'];
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php