Forum Moderators: coopster

Message Too Old, No Replies

Drop Box validation using php

         

krishna

4:58 am on Mar 12, 2010 (gmt 0)

10+ Year Member



I have 9 different drop boxes with these values
01
02
03
04
05
06
07
08
09
I have to ensure that the options selected from these drop boxes are different from each other and no two drop boxes have the same value.
Someone guide me on how to do such validation on server side instead of JS Client side.

thanks in advance,

Kris

coopster

2:05 pm on Mar 12, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



They will be returned in your $_POST or $_GET superglobals, depending on the form's method attribute. Likely $_POST. There are quite a few ways to accomplish the task, one of which might include using array_count_values [php.net].