How to check duplicates for 5 textfields with PHP?
Posted
by jl
on Stack Overflow
See other posts from Stack Overflow
or by jl
Published on 2010-05-17T01:39:58Z
Indexed on
2010/05/17
1:50 UTC
Read the original article
Hit count: 165
php
Hi,
I have 5 textfields for user input in a form namely:
username1, username2, username3, username4 and username5
I would like to know how should I write my php code such that I will be able to check if there is any duplicates between the 5 textfields during POST?
I can only think of comparing (username1 !== username2)
and so on, but I think there should be simpler way to do it right? How should I be able to do it?
Thank you very much.
© Stack Overflow or respective owner