[BNM] Checking if a bunch of form fields have a duplicate value
'Alex' Bridge
alx at dashalx.co.uk
Tue Apr 22 14:37:29 BST 2008
Also sprach delarge:
> hey hey hey... I might be being really thick - but is there a quick way in
> PHP to check if field1, field2, field3, field4 or field5 has a duplicate
> value when being processed?
Hi Paul,
Assuming you don't mind putting yr fields into an array,
array_keys($array, $search_value) or array_count_values($array) might
help for what you want to do:
http://uk.php.net/manual/en/function.array-keys.php
http://uk.php.net/manual/en/function.array-count-values.php
Cheers,
-alx
--
Views or opinions expressed in this email are not necessarily
those of the author and are not guaranteed fit for purpose.
Not suitable for children under 36 months. May contain nuts.
More information about the BNMlist
mailing list. Powered by Wessex Networks