Action At Link Using PHP

by Hiroshi on June 19, 2008

in PHP Basics, Tricks

Use this example to show some hidden message at page using PHP. You can use two pages for that or single page if register_globals are on in your php.ini settings.

<a href="page.php?action=showmessage">Click this link to show hidden message</a>
if ($action=='showmessage')
echo 'This was your hidden message or text or any content which was called by some action at link';

Instead of action you can use any variable, because u have to just assign a variable i.e. You can use display or content as a variable or act instead of action there.

Related Posts

Previous post:

Next post: