26-Mar-2015, 09:27 AM
This is the community forum. For a developer response use the Client Area.
27-Mar-2015, 10:22 AM
27-Mar-2015, 11:14 AM
Ok, the whole thing is now working fine
wrote a function and used it after //add new subscriber in the includes\app\processor.php
so if no errors occure and the submit button is pressed i insert the mail in a seperate DB. Last problem - how can i set the checkbox-status per default to checked?
this is the code i have:

so if no errors occure and the submit button is pressed i insert the mail in a seperate DB. Last problem - how can i set the checkbox-status per default to checked?
this is the code i have:
PHP Code:
<?php global $cmtx_default_newsletter; ?>
<div class="cmtx_label"> </div>
<?php if ($cmtx_default_newsletter) { ?>
<input name="cmtx_newsletter" type="checkbox" class="cmtx_checkbox_field" checked="checked" />
<?php } else { ?>
<input name="cmtx_newsletter" type="checkbox" class="cmtx_checkbox_field" />
<?php } ?>
<span class="cmtx_notify_text">get the Newsletter</span>
27-Mar-2015, 07:28 PM
This should work:
PHP Code:
<div class="cmtx_label"> </div>
<?php if ($_SERVER['REQUEST_METHOD'] == 'POST' && !isset($_POST['cmtx_newsletter'])) { ?>
<input name="cmtx_newsletter" type="checkbox" class="cmtx_checkbox_field">
<?php } else { ?>
<input name="cmtx_newsletter" type="checkbox" class="cmtx_checkbox_field" checked>
<?php } ?>
<span class="cmtx_notify_text">get the Newsletter</span>
30-Mar-2015, 02:35 PM
thanks a lot! that worked great

« Next Oldest | Next Newest »
Possibly Related Threads…
Thread / Author
Replies
Views
Last Post
Users browsing this thread: 1 Guest(s)