🔒 Closed Paano I changed Ang special characters sa code

Status
Not open for further replies.

PHC_Jayvee

nakatapos din sa research😂🤣
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.webp
 
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 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.

About this Thread

  • 22
    Replies
  • 900
    Views
  • 7
    Participants
Last reply from:
Flavored

Online now

Members online
1,098
Guests online
966
Total visitors
2,064

Forum statistics

Threads
2,277,028
Posts
28,973,795
Members
1,229,690
Latest member
ravendc1107
Back
Top