CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge -> Programming

 URL, clickable hyperlink from db with php

Print topic Send  topic

Author Message
entoone
Posted: 09/18/2005, 1:22 PM

I have been reading the post for answer to my question, but they just don't seem to match and I have spent hours on what should take a few mins. SO here goes! hope you can help.

I have a field, "website" within my database.

I can display records etc, no issues there.

I want to have the field "website" be clickable with the information contained in the field. Right now the informaiton within the field does show up, but when you move over the link, it's not a correct ur, it's my site, plus the website url and some other paremeers. This should be easy, but I'm having a devil of a time with it. Any help would be wonderful.

I have change from text, to heml and played with all options and just can't seem to get it. Also, I would like the link to open a new window.. I have tried _blank and still I'm LOST! HELP.
tom
Posted: 09/18/2005, 3:24 PM

1. change field to 'label', check 'html' chbox
2. in 'before show' event write:
$fldyourfieldname = "<a href=\"sample.php\" target=\"_blank\">click here</a>";
where sample.php is your desired url of course.
on your page you will see "click here" as link, which will open in new window

be careful of " and \"

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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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