\n"; if ( $digits == $output ) { $ch2 = curl_init(); curl_setopt($ch2, CURLOPT_URL, "http://www.iobridge.com/widgets/static/id=[widgetID]"); curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1); $output2 = curl_exec($ch2); curl_close($ch2); $ch3 = curl_init(); curl_setopt($ch3, CURLOPT_URL, "http:/my.apexserver.com/pls/apex/updatecode?code=".$digits); curl_setopt($ch3, CURLOPT_RETURNTRANSFER, 1); $output3 = curl_exec($ch3); curl_close($ch3); echo "You entered " . $digits . " and is correct. Happy Halloween!"; }else { echo "The code " . $digits . " has been already used or is incorrect. Try the next one!"; } ?>