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
|
|
|
 |
|