PDA

View Full Version : "I Agree" Checkbox button



nigelwong
September 18th, 2005, 07:58
Hey how do i make a checkbox button that if unchecked, doesn't allow the rest of the script to proceed?

Section of script:

echo count(glob($directory . "*")) . " images hosted by Xangoose";
echo "<br>";
echo "<form enctype=multipart/form-data method=post action=?action=upload><input name=userfile type=file>&nbsp;<input type=submit value=Upload></form>";
echo "<br>";
if($_GET['action'] == 'upload')
{
$uploaddir = $directory;
$trim = str_replace(" ", "",basename($_FILES['userfile']['name']));
$name = strtolower($trim);
srand((double)microtime()*1000000);

Thanks!

kabatak
September 18th, 2005, 08:50
die(); or exit();

nigelwong
September 19th, 2005, 03:27
Nevermind i figured it out. Thanks anyway!