[phplib] Undefined index: in Template From: Peter Bowyer (reywob <email protected>)
Date: 08/02/01

Hi,

I keep getting the following error:
Warning: Undefined index: recipient in ./include/template.inc on line 210

The bit of code in my script which is causing the error is as follows:
------
$tpl = new Sendcard_Template($tpl_path);
$tpl->set_file(array("form" => "form.tpl", "card" => "$des.tpl", "img_tags"
=> "image.tpl"));
$tpl->set_block("form", "recipient_block", "recipient");

for($i=0; $i<$num_recipients;$i++){
     $tpl->set_var("TO", $to[$i]);
     $tpl->set_var("TO_EMAIL", $to_email[$i]);
     $tpl->set_var("I", $i);
     $tpl->parse("recipient", "recipient_block", true);
}
------

What's wrong?
Thanks,
Peter

--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>