Jump to content

echo email address


lisseteb

Recommended Posts

Hey all I'm pretty new to PHP, so this question will probably be really easy and dumb for that matter, but I'm stuck on it, so if I can get some help on it that would be really great.

 

Anyway, I'm trying to echo out the value of an email address, but in a mailto link that would post that value of the email address. Such as if I put on an add form the email address [email protected] and in the display page I want it to be a link that would read [email protected].

 

The code I have right now is

 

<a href="mailto:<?php echo $row->email;?>" target="_blank"><?php $email = $_POST['email'];?></a>

Link to comment
https://forums.phpfreaks.com/topic/110993-echo-email-address/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.