mailto in a form

mailto in a form

Postby marcvander » Thu Apr 26, 2018 7:49 pm

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
marcvander
 
Posts: 101
Joined: Tue Mar 27, 2018 1:27 am

Re: mailto in a form

Postby toms » Thu Apr 26, 2018 9:23 pm

Code: Select all
<a href="mailto:#contact_email#">Email</a>
toms
 

Re: mailto in a form

Postby marcvander » Thu Apr 26, 2018 9:36 pm

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
marcvander
 
Posts: 101
Joined: Tue Mar 27, 2018 1:27 am


Return to General



cron