Re: [PHP] form validation

2011-08-12 Thread Richard Quadling
On 12 August 2011 16:42, Chris Stinemetz wrote: > I have a select menu created by a foreach loop. I am trying to > validate that there was a selection made before it is submitted to the > database. But I am not doing something correctly. > > onchange="javascript:get(this.parentNode);"> > Choose..

Re: [PHP] form validation

2011-08-12 Thread Daniel P. Brown
On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz wrote: > I have a select menu created by a foreach loop. I am trying to > validate that there was a selection made before it is submitted to the > database. But I am not doing something correctly. Try using a combination of isset, empty, and is_n

[PHP] form validation

2011-08-12 Thread Chris Stinemetz
I have a select menu created by a foreach loop. I am trying to validate that there was a selection made before it is submitted to the database. But I am not doing something correctly. Choose... $value) { $selected = ''; if($value == $market) { $selected =

Re: [PHP] form handling

2011-08-12 Thread jean-baptiste verrey
it's (pretty) easy to send two forms at once with jquery nowadays, you just get all the input of the 2 forms and post them! function submit2Forms(form1DomId,form2DomId){ $datas={}; $(form1DomId).find(':input').each(function(){ if(($(this).attr('name') && $(t

Re: [PHP] form handling

2011-08-12 Thread Ashley Sheridan
Chris Stinemetz wrote: >> >> I would bet it's the quotes screwing up the js. Can / are you >escaping that variable when ajaxing it back? >> >> Bastien Koert >> 905-904-0334 >> > >I found a way to make the ajax work with one form. I removed the table >and the ajax worked just fine. Aparently you