Hi And thanks for dropping by.. Okay i have this problem,i need to do some modifications in the registration page (zip code)it will only recognize us zip codes i need it to recognize uk postcode to heres the code if (!isNotNull($txtZIP)) { $message .= "* Zip cannot be empty! <br>"; } elseif($txtZIP==0 || (strlen($txtZIP)!=5 && $ddlCountry=="US")) { $message .= "* Enter valid Zip code! <br>"; PHP: if anyone can help it would be very helpful Thanks
You probably need to change this line elseif($txtZIP==0 || (strlen($txtZIP)!=5 && $ddlCountry=="US")) it's checking whether zip is 0 or length of zip is not equal to 5 and country is US if true then it considers it as invalid zip..
looks like it should be if (is_null($txtZIP)) { Code (markup): and it's elsif Code (markup): note missing the e