Re: Newbie HTML-form & PHP question

From: Date: Mon, 25 Sep 2000 15:08:48 +0000
Subject: Re: Newbie HTML-form & PHP question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17447@lists.php.net to get a copy of this message
Hello Bart, here is a little snippet of code .. I just got this from phpPolls. From phpwizard.com. You should look at phpwizard and phpbuilder and SourceForge for samples. Like I said .. after reading your note I simply went there and got this down. if($poll_optionText != "") { echo "<input type=\"radio\" name=\"poll_voteNr\" value=\"".$i."\" "; // set the first button as default if($poll_default == 0) { $poll_default = 1; echo "checked "; } echo "> $poll_optionText <br>"; } } // show submit button echo "<input type=\"submit\" value=\"Vote\">"; Hope this helps DSig David Tod Sigafoos Wednesday, September 20, 2000, 6:08:50 AM, you wrote: BAV> Hello, BAV> I'm creating a form that will allow users to subscribe thereselves to a BAV> database-mailinglist. BAV> now I've got one question: BAV> How does PHP handle radiobuttons. I want to let the visitor decide If there BAV> [male] or [female] and than store the decided entry in the database. Is it BAV> possible to writre the script so that [male]=1 and [female]=0 (or 'Y' & BAV> 'N') BAV> and than store the entry? BAV> I don't know how to. maybe all you can help. BAV> regards BAV> bart -- Best regards, David mailto:dsig@teleport.com

« previous php.general (#17447) next »