Re: hidden types

From: Date: Sat, 29 Sep 2001 04:14:16 +0000
Subject: Re: hidden types
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69246@lists.php.net to get a copy of this message
: With : : <input type="hidden" name="id[0]" value="1"> : <input type="hidden" name="id[1]" value="2"> : <input type="hidden" name="id[2]" value="3"> : <input type="hidden" name="id[3]" value="4"> : <input type="hidden" name="id[4]" value="5"> Also you can leave the subscripts out in your HTML source like this: <input type="hidden" name="id[]" value="1"> and you'll get the below. I personally try and limit what php information is in my html source so people reading the source have difficulty in understanding whats going on internally. : And you'll get : : $id[0] = 1 : $id[1] = 2 : $id[2] = 3 : $id[3] = 4 : $id[4] = 5 : : Not only on hidden, also in radio, text, etc. Joel

« previous php.general (#69246) next »