What's new

Closed Paano I changed Ang special characters sa code

Status
Not open for further replies.

PHC_Jayvee

nakatapos din sa research😂🤣
Joined
Apr 14, 2018
Posts
11,351
Solutions
64
Reaction
13,372
Points
3,717
Example tulad dito sa phcorner pag nag type ka na nasa loob ng spoiler pag pinost mo magiginv spoiler button Ito help naman
 
PHP:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>

1576749220181.png
 

Attachments

PHP:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>

View attachment 749337
tindi mo pre. 🤣
 
please elaborate papsy yung madali maintindihan kung yung gusto mo may color o special character ba parang ganun o yung naka hidden ba?
Ganito gusto ko sir

Pag Yung user ay nag type sa input ng form ng special characters example tinype nya hello $world$:) Yung magiginv output pag sinave at hello world :)pero Yung world na letter ay magiginv red kac nasa loob sya ng $dollar sign
 
w
Ganito gusto ko sir

Pag Yung user ay nag type sa input ng form ng special characters example tinype nya hello $world$:) Yung magiginv output pag sinave at hello world :)pero Yung world na letter ay magiginv red kac nasa loob sya ng $dollar sign
wag kang magmadali kalma ka lang. hahaha mas lalo di namin maintidihan.
 
PHP:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>

View attachment 749337
Sir nasan Yung input field
 
Gets nyo po ba
im not an expert pero pwede yun nka spoil at red color character madali sa phcorner pag spoil kasi nasa site na mismo yung pag spoil yung red character sana mag reply si micheal j. siya na sasagot goodluck, hahaha
 
Gets ko yung point ni master siguro ang pinopoint niya gusto niya macensore yung word if maenter, like FACEBOOK, TELEGRAM.

Correct me if I'm wrong. :)
 
Kung php ganito siguro (not tested):
$string2 = "$test";
if (strpos($string2, '$') === 0) {
echo "<font color='red'>".$string2."</font>";
}
 
Status
Not open for further replies.

Similar threads

Back
Top