Page 1 of 1

mailto in a form

PostPosted: Thu Apr 26, 2018 7:49 pm
by marcvander
Hey,

I would like to add a mailto function in a form.

So far I created a HTML object:
<a href="mailto:$email">Email</a>

How can I get the email value of the current RECORD ID? I guess I must use a PHP procedure? Or just Javascript? Or both?

In my database, the table is called contact and the field is called contact_email

Thanks in advance,

Marc

Re: mailto in a form

PostPosted: Thu Apr 26, 2018 9:23 pm
by toms
Code: Select all
<a href="mailto:#contact_email#">Email</a>

Re: mailto in a form

PostPosted: Thu Apr 26, 2018 9:36 pm
by marcvander
Indeed it's that simple ahah! Thanks :)