Thanks y'all! Everything's workin great now.
Jon Haworth wrote:
>>>With javascript onSubmit, but that ain't php, so with
>>>if($form1==$form2){sendthembackwitherrors()}
>>>
>>Thanks Chris, but I have about 10 different fields and want to make sure
>>none of those are the same.
>>
>
> You coul
> > With javascript onSubmit, but that ain't php, so with
> > if($form1==$form2){sendthembackwitherrors()}
> Thanks Chris, but I have about 10 different fields and want to make sure
> none of those are the same.
You could brute force it:
$ok = true;
if ($field1 == $field2 || $field1 == $field3
Hi, I think that you could still use Chris' method, you will just have to
do it in a loop. Create an array of all the form fields, and then have a
nested for loop which just checks that none of the elements are equal.
$numelements = count($fieldarray);
for($i = 0; $i < $numelements; $i++) {
Thanks Chris, but I have about 10 different fields and want to make sure
none of those are the same.
Dave
Chris Wright wrote:
> With javascript onSubmit, but that ain't php, so with
> if($form1==$form2){sendthembackwitherrors()}
>
> ---
> Christopher Wright
> 303 447 2496 x 107
> www.netinfra
With javascript onSubmit, but that ain't php, so with
if($form1==$form2){sendthembackwitherrors()}
---
Christopher Wright
303 447 2496 x 107
www.netinfra.com
"We'll take care of it."
"Net Infrastructure has definitely helped our company, even though we're
not in the US, Net Infrastructure has b
5 matches
Mail list logo