Jump to content

Hiding Code Immeadiatly


Snooble

Recommended Posts

I know this is not .php, most probably Javascript. but...

 

I want to hide code onclick. So i have a bit of code:

 

<?php echo 'yes yes yes'; ?>

 

When a user clicks a button it hides that code. then click it again and it reveals it, without changing page. If i can't hide php, then what about just html?

 

It's done on ebay, where you can click a cross on "my account" page and it hides the box with the X you pressed.

 

Any ideas? I know NOTHING about javascript.

 

Snooble

 

 

Link to comment
https://forums.phpfreaks.com/topic/53704-hiding-code-immeadiatly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.