Hello, im completely new to website making and PHP coding, so my problem might seem obvious to you.
Im trying to do a email sending form with a radio box, which has such an option:
em1=statement1
em2=statement2
em3=statement3
then i added custom code event, which has this code:
then i simply put word subject1 to a Dynamic subject field, and mailto to a Dynamic to field.
But this seems not working and gives an error instead, in which it said that there should be atleast one email to send to.
Can you please give me a hint where am i wrong?
Thanks in advance.
Im trying to do a email sending form with a radio box, which has such an option:
em1=statement1
em2=statement2
em3=statement3
then i added custom code event, which has this code:
<?php
if($data['input_radio_0'] == 'em1')
{$form->data['subject1']='subject number 1';
$form->data['mailto']='xxx1@gmail.com';}
if($data['input_radio_0'] == 'em2')
{$form->data['subject1']='subject number 2';
$form->data['mailto']='xxx2@gmail.com';}
if($data['input_radio_0'] == 'em3')
{$form->data['subject1']='subject number 3';
$form->data['mailto']='xxx3@rtrtr.com';}
?>
then i simply put word subject1 to a Dynamic subject field, and mailto to a Dynamic to field.
But this seems not working and gives an error instead, in which it said that there should be atleast one email to send to.
Can you please give me a hint where am i wrong?
Thanks in advance.