CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 [RESOLVED]email link next to textbox with email address in it

Print topic Send  topic

Author Message
Chris__T


Posts: 339
Posted: 01/27/2010, 12:04 PM

I have a form with a textbox that holds an email address. What I would like to do is have an email link next to this box, so someone could click it and it opens up default mail client and populates the To: box with the email address that is in the textbox.

There has to be a way to have a mailto: link next to this textbox, that gets the email address from there and sticks it into this mailto: code
View profile  Send private message
Chris__T


Posts: 339
Posted: 01/28/2010, 8:54 AM

I figured this out. It was pretty simple.

Put an HTML hyperlink next to the box. Static text: whatever you want the link to read
static address: mailto:test@test.com (will change this in a bit)

Go to HTML, find your text box with your email address and copy the value:

<input id="Panel1Panel_ApplicantpermitApplicant_Email" maxlength="250" size="50" value="{Applicant_Email}" name="{Applicant_Email_Name}"> 

The html code for the mailto hyperlink should be next to it:
<a href="mailto:test@test.com">email</a>

just replace thetest@test.com with what your copied value (in this case {Applicant_Email}

<a href="mailto:{Applicant_Email}">email</a>
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.