Re: [PHP] Defining Variables to use with a Function

2002-05-24 Thread chris reeper
Ok that works.. but I dont declare the variable and have it read it from a form but.. It can only execpt one email address at a time.. How can i take email address from each line in the form and use that.. I have been trying to adapt this to do it.. but it isnt working for me ? $lines = split("\n

RE: [PHP] Defining Variables to use with a Function

2002-05-24 Thread Patrick Lynch
You can set a variable in a configuration file containing the email address as normal $to = "[EMAIL PROTECTED]"; In the function, use the global statement to bring the variable into the function's scope. Function SetTo($to) { global $to; if (strlen($to)<=0)