Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

mailto in a form

Post Reply
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

mailto in a form

Unread post 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
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: mailto in a form

Unread post by toms »

Code: Select all

<a href="mailto:#contact_email#">Email</a>
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Re: mailto in a form

Unread post by marcvander »

Indeed it's that simple ahah! Thanks :)
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
Post Reply