[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Validating fields in the form
> I tried adding following into profiles.order:
>
> [if value address1 =~ /p\.o\.\s*box\b/i]
> No PO boxes allowed for address.
> [/if]
> address1=required
>
> But it seems that is not working.
>
> What I am doing wrong here.
>
> I want to set up this so that when someone types in PO Box address that
> "No PO boxes allowed for address" message is displayed on screen.
>
Compare what you have written to the PO box code in other parts of the
Foundation demo's profiles.order file.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/