ok cold fusion has the ability to do a cfparam name='' default=''
this lets you specify a variable name to be defaulted to a value if it is
called without being defined. I usually use this for variables specified by
forms either by GET or POST. now I can't find it's equivalent in PHP.. can
: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 13, 2003 4:12 PM
|To: '[EMAIL PROTECTED]'
|Subject: [PHP-WIN] php defining variable defaults?
|
|
|ok cold fusion has the ability to do a cfparam name='' default=''
|
|this lets you specify a variable name to be defaulted to a
|value
that is exactly what I was looking for!!! =) Thank you very much!
-Original Message-
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] php defining variable defaults?
You could do
if(!isset