What is wrong with this code ?

From: Date: Mon, 15 Sep 2003 19:29:00 +0000
Subject: What is wrong with this code ?
Groups: php.general 
Request: Send a blank email to php-general+get-162648@lists.php.net to get a copy of this message
Hello What is wrong with this code ? $doWork = $_GET[doWork]; echo $doWork; echo ( "<BR>"); if ( $doWork = 0) { exit; } else { if ( $doWork = 1) { ?> <input class=no type="button" value="Accept" onClick="doAccept();"> <input class=no type="button" value="Reject" onClick="doReject();"> <? }; if ( $doWork = 2) { echo ( "call request accepted"); }; if ( $doWork = "3") { echo ( "call request rejected"); } } I still got in the page the 2 buttons and the 2 echo's from doWork = 2 and doWork = 3. Thanks Daniel

« previous php.general (#162648) next »