echo ' ... onClick="javascript:document.location.href(\'test.php?action=display&var1='.$var1.'\');"';