Page 1 of 1

mailto in a form

Posted: Thu Apr 26, 2018 12:19 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

Posted: Thu Apr 26, 2018 1:53 pm
by toms

Code: Select all

<a href="mailto:#contact_email#">Email</a>

Re: mailto in a form

Posted: Thu Apr 26, 2018 2:06 pm
by marcvander
Indeed it's that simple ahah! Thanks :)