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?
É ::
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=""
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?
É ::