Date: 08/02/01
- Next message: Hilmar Simon: "[phplib] phplib-installation"
- Previous message: Matt Gregory: "Re: [phplib] Authenication"
- Next in thread: Richard Archer: "Re: [phplib] Undefined index: in Template"
- Reply: Richard Archer: "Re: [phplib] Undefined index: in Template"
- Maybe reply: Peter Bowyer: "Re: [phplib] Undefined index: in Template"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Hilmar Simon: "[phplib] phplib-installation"
- Previous message: Matt Gregory: "Re: [phplib] Authenication"
- Next in thread: Richard Archer: "Re: [phplib] Undefined index: in Template"
- Reply: Richard Archer: "Re: [phplib] Undefined index: in Template"
- Maybe reply: Peter Bowyer: "Re: [phplib] Undefined index: in Template"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

