Here is a solution awaiting a problem. ?
When you want the user to click a button or a link ONLY ONCE, and not again.
Try this:
[code=php]
<html>
<head>
<title>Do Once</title>
<script type=”text/javascript”>
// idea from www.webdeveloper.com forum
// http://www.webdeveloper.com/forum/showthread.php?t=151682
function Hide(ids) { document.getElementById(ids).style.display = ‘none’; }
function Show(ids) { document.getElementById(ids).style.display = ‘block’; }
</script>
</head>
<body>
<div id=”showfirst” style=”display:block”>
<!– following could be replaced with <input type=”submit” value=”Submit”> –>
<button onClick=”Hide(‘showfirst’);Show(‘showlater’)”>Do Once</button>
Please submit your opinion. (This information is shown first.)
</div>
<div id=”showlater” style=”display:none”>
Thank you for your opinion. (This information is shown later.)
</div>
</body>
</html>