[PHP-DB] php-db Forms-Radio problems
Hello I'm having a devil of a time with my form. I'm able to process checkboxes and fields but am having trouble with radio buttons. Here's how I'm doing the fields which works: snippet Your Last Name input type=text name=last value= size=30 maxlength=40 Title input type=text name=title value= size=30 maxlength=40 /snippet which produces: ( [last] = Smith [title] = Vice President ) But when I try: snippet input type=radio name=job value=oper Operation Maintenance input type=radio name=job value=eng Engineering (Including Project Management) input type=radio name=job value=mgmt Management (other than corporate) input type=radio name=job value=other Other - Please Specify input name=job type=text size=30 /snippet and one is selected, I get: ( [job] = ) I have searched archives, books, tutorials...cant figure it out. Are radio buttons handled differently? Can someone please enlighten me? Thx Mignon Hunter Webmaster Toshiba International Corporation (713) 466-0277 x 3461 (800) 466-0277 x 3461 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] php-db Forms-Radio problems
Mignon Hunter wrote: input type=radio name=job value=oper Operation Maintenance input type=radio name=job value=eng Engineering (Including Project Management) input type=radio name=job value=mgmt Management (other than corporate) input type=radio name=job value=other Other - Please Specify input name=job type=text size=30 This last field will overwrite the radio setting when PHP reads the form fields. Remove it. It's not needed. -- Stuart -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] php-db Forms-Radio problems
THANK YOU duh me I knew it was something simple :( Mignon Hunter Webmaster Toshiba International Corporation (713) 466-0277 x 3461 (800) 466-0277 x 3461 Stuart [EMAIL PROTECTED] 01/27/04 11:41AM Mignon Hunter wrote: input type=radio name=job value=oper Operation Maintenance input type=radio name=job value=eng Engineering (Including Project Management) input type=radio name=job value=mgmt Management (other than corporate) input type=radio name=job value=other Other - Please Specify input name=job type=text size=30 This last field will overwrite the radio setting when PHP reads the form fields. Remove it. It's not needed. -- Stuart -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] php-db Forms-Radio problems
It appears the intention of the text input is to provide an other job type. Instead of removing it, rename it to job_other or something. Then test for the value of job, if other use job_other value. -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 11:42 AM To: Mignon Hunter Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] php-db Forms-Radio problems Mignon Hunter wrote: input type=radio name=job value=oper Operation Maintenance input type=radio name=job value=eng Engineering (Including Project Management) input type=radio name=job value=mgmt Management (other than corporate) input type=radio name=job value=other Other - Please Specify input name=job type=text size=30 This last field will overwrite the radio setting when PHP reads the form fields. Remove it. It's not needed. -- Stuart -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php