Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail link

Status
Not open for further replies.

Blutch

IS-IT--Management
Joined
Sep 19, 2002
Messages
203
Location
BE
In a first window I let the user choose a name from a MySQL database. In the second window I get a detail page for the chosen name. One of the elements it dynamically puts is an email address. I want it to make immediatly clickable so it opens the users mailprogram with a mail ready for that address.

How must I program this?
 
This is an HTML issue.
All you need is in window#1:
Code:
<a href=&quot;whatever.php?name=theName&quot; target=&quot;window2&quot;>theName</a>
# mail link
<a href=&quot;mailto:name@xxx.com&quot;>Send mail</a>

It is only cicumstancial that PHP is used to create these links.
 
In the second window the e-mail address is placed as follows:

<?php echo $row_Recordset1['Email']; ?>

How do I make this clickable? Like this?:

<a href=mailto:'$row_Recordset1['Email'];'><?php echo $row_Recordset1['Email'];</a>

Sorry for this probably stupid question ... :-(
 
Sorry, found it

<a href=mailto:<?php echo $row_Recordset1['Email']; ?>><?php echo $row_Recordset1['Email']; ?></a>

Thx anyway
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top