- Kod: Tümünü seç
Warning: Missing argument 11 for validate_optional_fields() in /home/..../public_html/..../includes/functions_validate.php on line 169
hatasını alıyorum. İşlem yapılıyor ama ben bu hatayı neden aldığımı hala çözemedim.
functions_validate.php dosyamdan 169 ve sonrası ;
- Kod: Tümünü seç
function validate_optional_fields(&$icq, &$aim, &$msnm, &$gtalk, &$yim, &$website, &$location, &$occupation, &$interests, &$sig, &$skype)
{
$check_var_length = array('aim', 'msnm', 'gtalk', 'yim', 'website', 'location', 'occupation', 'interests', 'sig', 'skype');
for($i = 0; $i < count($check_var_length); $i++)
{
if (strlen($$check_var_length[$i]) < 2)
{
$$check_var_length[$i] = '';
}
}
// ICQ number has to be only numbers.
if (!preg_match('/^[0-9]+$/', $icq))
{
$icq = '';
}
// website has to start with http://, followed by something with length at least 3 that
// contains at least one dot.
if ($website != "")
{
if (!preg_match('#^http[s]?:\/\/#i', $website))
{
$website = 'http://' . $website;
}
if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website))
{
$website = '';
}
}
return;
}
?>