Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to diplay a non clickable link in its entire form
Old 04-17-2009, 10:47 AM how to diplay a non clickable link in its entire form
Junior Talker

Posts: 4
Trades: 0
I am trying to get the code for a link to display on a PHP page that is done from a language file, and needs to be non clickable.

What I am trying to do is add the entire code for a link so members can copy it and paste it into a field were they will then add there own information to the link, it is very important that the code shows exactly as the way it is below.

An example:

I want to display this on the page:
Code:
<a href="http://www.domainname.com/copy.php?id=YOUR ID HERE">Copy this</a>
But when I add it into the language file it displays as:
Quote:
Copy this
I know I have to comment out the link so it is no longer a link but a display but for the life of me can not find how to do it.

If worst comes to worst I don't mind adding it to the PHP page but prefer it in the language file.
yamaharr1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-17-2009, 10:51 AM Re: how to diplay a non clickable link in its entire form
Junior Talker

Posts: 4
Trades: 0
OK found it once I added this post and looked in the source code, that is a funny way to get an answer.
yamaharr1 is offline
Reply With Quote
View Public Profile
 
Old 04-17-2009, 02:11 PM Re: how to diplay a non clickable link in its entire form
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
You can also use this:

Code:
<form action="" name="embedForm" id="embedForm">
<label for="embed_code">Link:</label>
<input id="embed_code" name="embed_code" type="text" value="<a href="http://www.domainname.com/copy.php?id=YOUR ID HERE">Copy this</a>" onclick="document.embedForm.embed_code.focus();document.embedForm.embed_code.select();" readonly />
</form>
I copied that off youtube, and it also selects the data when you click in the box.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 04-20-2009, 01:10 PM Re: how to diplay a non clickable link in its entire form
Novice Talker

Posts: 12
Trades: 0
Easy
& gt; >
& lt; <

So the code would be

&lt;a href="http://www.domainname.com/copy.php?id=YOUR ID HERE"&gt;Copy this&lt;/a&gt;
__________________
Reliable and Legal
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
?
Find A Paralegal Fast.

Please login or register to view this content. Registration is FREE

Last edited by sjenkins; 04-20-2009 at 01:13 PM..
sjenkins is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to diplay a non clickable link in its entire form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13212 seconds with 12 queries