[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 10-23-2005, 03:27 AM   #1 (permalink)
First Time Poster!
 
Join Date: Aug 2004
Location: Hoddesdon, Hertfordshire, England
Posts: 11,341
58.59 NP$ (Donate)

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

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?
__________________
Link Building
Sabre is offline  
Old 10-23-2005, 03:34 AM   #2 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

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, 05:51 AM   #3 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
HTML Code:
<body>
<!-- Hellooooo --> <a href="/radio.php">Radio</a>
</body> 
__________________
Eric is offline  
Old 10-23-2005, 11:48 AM   #4 (permalink)
Account Suspended
 
thomaslgates's Avatar
 
Join Date: Oct 2005
Location: India
Posts: 672
169.75 NP$ (Donate)

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, 01:04 PM   #5 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 10-26-2005, 02:01 AM   #6 (permalink)
First Time Poster!
 
Join Date: Aug 2004
Location: Hoddesdon, Hertfordshire, England
Posts: 11,341
58.59 NP$ (Donate)

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

Animal Cruelty Help The Homeless - Holiday 2009
Quote:
Originally Posted by compuXP
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.
So, how do i do that?

Does that mean SV's will show up?

(Sorry about all this guys)
__________________
Link Building
Sabre is offline  
Old 10-26-2005, 02:20 AM   #7 (permalink)
Account Closed
 
tony84's Avatar
 
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
46.35 NP$ (Donate)

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, 02:46 AM   #8 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Quote:
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.

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.

Quote:
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, 02:49 AM   #9 (permalink)
Account Closed
 
jmweb's Avatar
 
Join Date: Jan 2004
Location: Charlottetown
Posts: 1,033
375.14 NP$ (Donate)

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, 02:48 AM   #10 (permalink)
First Time Poster!
 
Join Date: Aug 2004
Location: Hoddesdon, Hertfordshire, England
Posts: 11,341
58.59 NP$ (Donate)

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

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.
__________________
Link Building
Sabre is offline  
Old 11-03-2005, 06:20 AM   #11 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Quote:
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, 04:31 AM   #12 (permalink)
First Time Poster!
 
Join Date: Aug 2004
Location: Hoddesdon, Hertfordshire, England
Posts: 11,341
58.59 NP$ (Donate)

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

Animal Cruelty Help The Homeless - Holiday 2009
Quote:
Originally Posted by SecondVersion
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>';

?>
Cheers SV!

I would leave rep.. but;

"You must spread some Reputation around before giving it to SecondVersion again."
__________________
Link Building
Sabre is offline  
Old 11-08-2005, 11:03 AM   #13 (permalink)
NamePros Regular
 
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
0.00 NP$ (Donate)

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>
-Coolprogram
Coolprogram is offline  
Closed Thread


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

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanted: Simple Countdown Timer Code BLazeD CODE 4 09-27-2005 12:07 PM
30 NP$ For Whoever Can Give Me Simple Code Snippet buddybuddha Programming 8 09-13-2005 01:00 PM
simple code help unknowngiver Programming 5 08-17-2005 03:36 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 08:05 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85