Topic: if empty
all clear for what is meant if(empty($field))
i dont like the fact that the field is no longer seen as empty if it consists even of one space
how to make that the field is empty although it would contain even 100 spaces?
thanks
You are not logged in. Please login or register.
PHP Forums » Code » if empty
all clear for what is meant if(empty($field))
i dont like the fact that the field is no longer seen as empty if it consists even of one space
how to make that the field is empty although it would contain even 100 spaces?
thanks
A small sample
<?php
$pattern = "^([A-Za-z0-9\.|-|_]{1,60})([@])";
$pattern .="([A-Za-z0-9\.|-|_]{1,60})(\.)([A-Za-z]{2,3})$";
ereg($pattern,$email)
?>PHP Forums » Code » if empty
Powered by PunBB, supported by Informer Technologies, Inc.