Hi!
I have a problem with an email send field.
I have a registration form, and this form is used to edit user data as well.
I had to add some javascript to the form, as the user had extra needs, so I have fount it easier to create a template and there I could style and add my javascript.
So I display the form with a custom template.
I also have an email sent field.
But I want the emails to go out only when a user registers, not when he just edit his profile. So, I have an if statement:
if(!$userid){
<?php echo $cck->renderField('email_send'); ?>
}
I would assume, that the email send field is not there (I can not see it in the code when I check the source with ctrl-u) but the email is still being sent even if a user edit his profile.
How can I use this field to send emails only when a user registers?
Thnak you!