Jump to content

Recommended Posts

Sorry.  Was multitasking badly as I posted the original message

 

I have a CRUD application where we will be entering information into a DB for our customers.  We need a system where we can keep track of links for programming their phone systems.  All are online and programmed using a browser.  We are entering the url into a field in the form and later the url is brought out in a table showing all the different records for all the customers.  I am looking for a way to make the url clickable?  We have multiple people accessing this report.

Edited by elentz

Even your attempt at re-posting doesn't make a lot of sense. For ex., what does "programmed using a browser" mean?

 

Anyway - you have a url and want to make it clickable so as to "jump" to that site? phpmillion has told you how.

Edited by ginerjm

  • I have a CRUD application where we will be entering information into a DB for our customers.  Okay.

We need a system where we can keep track of links for programming their phone systems. A link programs a phone system?  You mean, you want to keep track of all the links they followed?  If so, include a session or cookie in the request or some data in the URL, and store that in the DB.

All are online and programmed using a browser.  All who?

We are entering the url into a field in the form and later the url is brought out in a table showing all the different records for all the customers.  Not sure on this one.  Are you looking to save the urls that were placed in the form in a DB?  Shouldn't be too difficult.

I am looking for a way to make the url clickable? As stated, use an anchor tag.

We have multiple people accessing this report.  And your point is?

And what is "not pretty" about it? The fact that the link simply shows as "click here"? I can see that. But - when you retrieve the url that is being ref'ed, can you not also retrieve something more descriptive from that same source and use that as the display value of the anchor?

<td><a href="http://<?php echo $row[2];?>">Click Here</a></td>

Not pretty but works.  Thanks for the nudge to figure it out.

 

What's wrong about that? It's a normal code to display links. Sure thing, you can always use templating system, so your code will look like:

<td><a href="http://{{ some_link }}">Click Here</a></td>

but if you are unfamiliar with PHP/HTML, you may find it very difficult to add templating engine to your script.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.