NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need help with a EXTREMELY simple code...

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-23-2005, 04:27 AM THREAD STARTER               #1 (permalink)
First Time Poster!
Join Date: Aug 2004
Location: Chelmsford, UK
Posts: 11,311
Sabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond repute
 

Member of the Month
March 2005
Animal Cruelty Help The Homeless - Holiday 2009

Need help with a EXTREMELY simple code...


How do you make it so that, just say i had

<body>
Hellooooo <a href="/radio.php">Radio</a>
</body>

And i didnt want the Helloooo to show up on the page at all, what is the code i would put in to hide it, but keep it on the page, so i can go back for future reference?
__________________
Backpacker Insurance
Sabre is offline  
Old 10-23-2005, 04:34 AM   #2 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




you could make the heloo color the same as the background color.

eg

<body>
<font color = #FFFFFF>Hellooooo</font> <a href="/radio.php">Radio</a>
</body>
Barrucadu is offline  
Old 10-23-2005, 06:51 AM   #3 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
HTML Code:
<body>
<!-- Hellooooo --> <a href="/radio.php">Radio</a>
</body>
Eric is offline  
Old 10-23-2005, 12:48 PM   #4 (permalink)
Account Suspended
 
thomaslgates's Avatar
Join Date: Oct 2005
Location: India
Posts: 672
thomaslgates is just really nicethomaslgates is just really nicethomaslgates is just really nicethomaslgates is just really nice
 



Mikor, you are hiding the text with a font color that is the same as the bgcolor.

V2, you are correct. I will also tell sabre the same thing, to use comment tag.

I think you got yer doubt cleared Sabre.!
thomaslgates is offline  
Old 10-23-2005, 02:04 PM   #5 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
The text in HTML comments can be viewed by viewing the source of the page.

Enclose the text in PHP comments if you don't want it to be visible at all.
mholt is offline  
Old 10-26-2005, 03:01 AM THREAD STARTER               #6 (permalink)
First Time Poster!
Join Date: Aug 2004
Location: Chelmsford, UK
Posts: 11,311
Sabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond repute
 

Member of the Month
March 2005
Animal Cruelty Help The Homeless - Holiday 2009
Originally Posted by compuXP
The text in HTML comments can be viewed by viewing the source of the page.
????: NamePros.com http://www.namepros.com/programming/134197-need-help-with-extremely-simple-code.html

Enclose the text in PHP comments if you don't want it to be visible at all.
So, how do i do that?

Does that mean SV's will show up?

(Sorry about all this guys)
__________________
Backpacker Insurance
Sabre is offline  
Old 10-26-2005, 03:20 AM   #7 (permalink)
Account Closed
 
tony84's Avatar
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
tony84 is on a distinguished road
 



or put on deperate lines with // for instance :
<body>
//hellooooo
<a href="/radio.php">Radio</a>
</body>

that may only work for php though im not sure
tony84 is offline  
Old 10-26-2005, 03:46 AM   #8 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by Sabre
So, how do i do that?

Does that mean SV's will show up?

(Sorry about all this guys)
No, it does not show up on the page itself.
????: NamePros.com http://www.namepros.com/showthread.php?t=134197

HTML Code:
<body>
<!-- Hellooooo --> <a href="/radio.php">Radio</a>
</body>
And all you would see is the link:

Radio

What compuXP is saying that if someone views the source of the page, that they can see the comment.

Originally Posted by tony84
or put on deperate lines with // for instance :
<body>
//hellooooo
<a href="/radio.php">Radio</a>
</body>

that may only work for php though im not sure
In HTML, //Something, will showup.
Eric is offline  
Old 10-26-2005, 03:49 AM   #9 (permalink)
Account Closed
 
jmweb's Avatar
Join Date: Jan 2004
Location: Charlottetown
Posts: 1,033
jmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of light
 



Are you using php or html?
jmweb is offline  
Old 10-28-2005, 03:48 AM THREAD STARTER               #10 (permalink)
First Time Poster!
Join Date: Aug 2004
Location: Chelmsford, UK
Posts: 11,311
Sabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond repute
 

Member of the Month
March 2005
Animal Cruelty Help The Homeless - Holiday 2009
HTML... but in a .php file (as always)

I need it so that you cant view it ANYWHERE, apart from in the cpanel file... no source, no selecting on screen with mouse etc.
__________________
Backpacker Insurance
Sabre is offline  
Old 11-03-2005, 07:20 AM   #11 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by Sabre
HTML... but in a .php file (as always)

I need it so that you cant view it ANYWHERE, apart from in the cpanel file... no source, no selecting on screen with mouse etc.
Old thread, but anyway.. You are using a PHP file? Just use comments...

PHP Code:
<?php

//This is a single line comment

/*
Or you could use this method for multi line comments
*/

?>
So, for your needs, could do something like:

PHP Code:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>
Eric is offline  
Old 11-05-2005, 05:31 AM THREAD STARTER               #12 (permalink)
First Time Poster!
Join Date: Aug 2004
Location: Chelmsford, UK
Posts: 11,311
Sabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond reputeSabre has a reputation beyond repute
 

Member of the Month
March 2005
Animal Cruelty Help The Homeless - Holiday 2009
Originally Posted by SecondVersion
Old thread, but anyway.. You are using a PHP file? Just use comments...

PHP Code:
<?php
????: NamePros.com http://www.namepros.com/showthread.php?t=134197

//This is a single line comment

/*
Or you could use this method for multi line comments
*/

?>
So, for your needs, could do something like:

PHP Code:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>
Cheers SV!

I would leave rep.. but;

"You must spread some Reputation around before giving it to SecondVersion again."
__________________
Backpacker Insurance
Sabre is offline  
Old 11-08-2005, 12:03 PM   #13 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



PHP Code:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>
Of

PHP Code:
/*hello*/<a href="/radio.php">radio</a
????: NamePros.com http://www.namepros.com/showthread.php?t=134197
-Coolprogram
Coolprogram is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanted: Simple Countdown Timer Code BLazeD CODE 4 09-27-2005 01:07 PM
Various names - AngloSaxons.info... Catsse Domains For Sale - Make Offer 0 09-14-2005 06:49 PM
30 NP$ For Whoever Can Give Me Simple Code Snippet buddybuddha Programming 8 09-13-2005 02:00 PM
simple code help unknowngiver Programming 5 08-17-2005 04:36 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:55 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger