Forums

Checkbox "sent copy to sender"

bert56 12 Oct, 2009
Hello ChronoForms Team,

I am trying to find out how to add a checkbox to the form if the sender wants to receive a copy of the filled out form.

Could you give me some feedback?

Thanks in advance for the assistance!


Bert
GreyHead 12 Oct, 2009
Hi Bert,

If I remember correctly someone answered this a couple of weeks ago.

Bob
bert56 12 Oct, 2009
Hi Bob,

On the forum I found some info but I still do something wrong.

In the form I put:
<input type="text" name="SenderEmail" size="50" />
<input type="checkbox" name="SendSelf" value="Yes"/>

On submit code:
<?php
if ($MyRow->SendSelf="Yes")
JRequest::setVar('SenderEmail', JRequest::getVar('SenderEmail'), 'post');
?>

Because I don't know any PHP programming I don't know where I go wrong.

Can you get me some advice?


Bert
This topic is locked and no more replies can be posted.