CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Hyper Links

Print topic Send  topic

Author Message
Netstar
Posted: 04/05/2003, 3:21 PM

how do you create hyper links using a data base and master detail pages.

My database has all the address in them but the links don't go to the sites when clicked on very confusing where do you set the links up when using a database as the source for the email address nad web links
RonB
Posted: 04/07/2003, 6:02 AM

Hi,

it depends on how you store the links in the database. I've made a habit of storing the full htmlcode =>
<a href="http://www.somesite.com">somesite</a>

now all you have to do is set the field to html and your links will work. If you stored the links like this=>
www.somesite.com You'll have to add the html in a before show event in php=>
global $yourgrid;
$yourgrid->fieldname->setvalue("<a href='"
.$yourgrid->fieldname->GetValue()
."'>"
.$yourgrid->fieldname->GetValue()
."</a>");

for email links use the correct href tag => <a href="mailto:someone@somesite.com">someone@somesite.com</a>

Ron

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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