Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining variables 1

Status
Not open for further replies.

cian

Technical User
Oct 11, 2001
1,383
Hi guys,

this should be easy.
basically what i'm doing is very simple:
I define a number of variables like this:

$url="
Then later in the script

mail( "$email", "$subject", "$message_hdr
$download_title: $url

But I want to set up defaults like this:

$def_url="if ($url="") $url=$def_url;

Am I going about this the right way? I want the user to be able to specify the variables using hidden form fields but if they do not specify them then the script should use the default variables $def_foo

Doing it this way is leaving the output blank, any ideas please?


É ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top