PHP issue: How do I insert a HTML link into the script?

by 3 replies
5
Hello there professionals!

Let's say I want to insert a <a href="www.xxxx.com">Click Here</a> into a
"define" column, or anywhere within the middle part of the php template, how I add it in so that it will appear as a normal link?

Regards,
Ed

P.S.: I tried to insert the code directly in the "define" column, all I got was plain text without the hyper-link.

P.S.S.: Any help will be GREATLY appreciated!
#programming #html #insert #issue #link #php #script
  • Its a stab in the dark as I have no idea what software you are using or what you are trying to do - but remove the " quotes from your <a href="www.xxxx.com">Click Here</a>

    A link will render in most browsers without them and its probably whats breaking your php.

    Ta

    Baz
    • [ 1 ] Thanks
  • Never heard of a "define" column, but this is the php code:

    echo '<a href="www.xxxx.com">Click Here</a>';
    • [1] reply
    • Another approach is to use Javascript to insert the link conditionally upon page load. It doesn't get any easier when you're using jQuery.

Next Topics on Trending Feed