If($a2 eq $a3) { ...} else {....}
Is this what you want? Thank you & best regards, ABC -----Original Message----- From: Annie [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:31 PM To: [EMAIL PROTECTED] Subject: how to compare to string variables I have two strings which I am receiving from two text fields in a form. I want to compare these... $a2='Lambott' $a3='Lambott' can anyone tell me how i can compare that the string inside a2 and a3 is similar. thanks --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]