Re: (Urgent!!!) Checkbox Reference

From: Date: Mon, 18 Dec 2000 04:16:04 +0000
Subject: Re: (Urgent!!!) Checkbox Reference
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30821@lists.php.net to get a copy of this message
Hello Blake, (BM == "Blake Miller") blakeage@hotmail.com writes: BM> What's wrong with using the filename as the name of the checkbox? Nothing. What's wrong with using it as the value? If you want your variables to look like: $filename.gif Then go for it. BM> ----Original Message Follows---- BM> From: Brian Clark <brianj@fusionwerks.com> BM> Reply-To: Brian Clark <brianj@fusionwerks.com> BM> To: "PHP is not a drug ." <php-general@lists.php.net> BM> Subject: Re: [PHP] (Urgent!!!) Checkbox Reference BM> Date: Sun, 17 Dec 2000 01:54:50 -0500 BM> Hello Tan, BM> (TJ == "Tan JH") jenhwi@visto.com writes: TJ>> The problem is i can't refer to the check box which determines TJ>> which file to delete as i am using the filename as my checkbox TJ>> name. BM> <form method="post"> BM> <input type="checkbox" name="filename" BM> value="filename.gif"> BM> <input type="submit"> BM> </form> BM> <?php BM> if(isset($filename)) BM> { BM> print $filename; BM> /* do something with $filename */ BM> /* like @unlink($filename); ? */ BM> } ?>> BM> Perhaps? BM> -Brian -Brian -- Like punning, programming is a play on words.

« previous php.general (#30821) next »