Re: Newbie HTML-form & PHP question

From: Date: Sat, 23 Sep 2000 12:25:17 +0000
Subject: Re: Newbie HTML-form & PHP question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17425@lists.php.net to get a copy of this message
Hi Bart! On Wed, 20 Sep 2000, Bart A. Verbeek wrote: > Hello, > I'm creating a form that will allow users to subscribe thereselves to a > database-mailinglist. > now I've got one question: > > How does PHP handle radiobuttons. I want to let the visitor decide If there > [male] or [female] and than store the decided entry in the database. Is it > possible to writre the script so that [male]=1 and [female]=0 (or 'Y' & > 'N') > and than store the entry? > > I don't know how to. maybe all you can help. Here's what I did when first faced with this quirky questions : I did a kitchen-sink form, with any HTML valid option included and pointed `action' to a script containing only '<? phpinfo(); ' Then, I hit submit and looked down on the PHP Variables section, and I was enlighted and happy hacking all day long after. Try that. Tell us what u think ;) -- teodor

« previous php.general (#17425) next »