
July 13th, 2006, 02:36 AM
|
|
|
|
Join Date: Apr 2007
Location: Kenai, Alaska, USA
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
HTML_QuickForm returning array values in email
Hello,
I'm creating and learning with HTML_Quickform 3.26 on Debian Sarge.
I've setup my phone number fields like this:
$contact1_phone[] = &HTML_QuickForm::createElement('text','areacode',nu ll,'size="3"');
$contact1_phone[] = &HTML_QuickForm::createElement('text','exchange',nu ll,'size="3"');
$contact1_phone[] = &HTML_QuickForm::createElement('text','last4',null, 'size="4"');
$form->addGroup($contact1_phone,'contact1_phone','Phone: ','-');
$form->addRule('contact1_phone','Enter a phone number.','required');
I'm stuck on how to pull these values out of the array when I want to generate an email:
$msg .= "Emergency Contact1 Phone: $data[contact1_phone]n";
This is returning:
Emergency Contact1 Phone: Array
I've tried to use print_r function but I'm not getting the syntax to work.
Thank you for any tips or advice,
Tim
|