Hi All,
Sorry for maybe a very simple question, but it has been bugging me for the last few productive hours.
<?php
function uc_attribute_base_num_code_validate($form) {
if (!is_int($form['#value'])){
form_error($form, t('This is not a valid code.'));}
if (10!=strlen($form['#value'])) {
form_error($form, t('This is not a valid code.'));}
return;
}
?>Why is number 1234567890 not a valid integer? How can I make sure only numbers in this format are submitted through the form?
Hope somebody sees what I missed.
Thanks
Mark






Joined: 03/31/2008