Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Tamara Temple
On Jun 24, 2011, at 2:20 PM, Jim Giner wrote: Call me backwards, but I prefer to keep my statements simple. I would first obtain the POST value before trying to pull up an array element. $stype=$_POST[''store_type']; if (!isset($stype)) (handle missing radio button) else $st_name=$cho

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Tamara Temple
On Jun 24, 2011, at 1:44 PM, Chris Stinemetz wrote: radio select validation What I am doing wrong? I want to make sure a radio button is selected, but my current code allows insertion even when radio button isn't selected. At the risk of repeating myself: From: Tamara Temple D

[PHP] dropdown with two Sql query

2011-06-25 Thread asp kiddy
Hi, have some difficulty with my 'select' In my select/menu, I display all the options come from a table (table_db_email) in my database In this table (tb_code_prmtn11_email) I have two field : fld_email_id fld_name_email It works here is a code code> Choo

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Tamara Temple
On Jun 24, 2011, at 1:35 PM, Richard Quadling wrote: On 24 June 2011 18:23, Tamara Temple wrote: On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets wrote: And furthermore, I think Carthage must be destroyed. Let's haul out the PHP war wagons! ht

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Vitalii Demianets
On Saturday 25 June 2011 01:24:10 Andre Polykanine wrote: > Maybe I'm off topic, but wouldn't you consider JavaScript form > validation? That will make your task easier and the user will see > his/her error much earlier, before he/she submits the form. JavaScript validation is useful

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Vitalii Demianets
On Friday 24 June 2011 21:44:05 Chris Stinemetz wrote: > if (!array_key_exists($_POST['store_type'], $choices)) { >   >  echo "You must select a valid choice."; Nothing wrong to me. Perfectly valid way of checking if there is