I array $err_strings den array $error_message_key maç olduğunu dize değerleri dize değerlerini dışarı atmak için çalışıyorum. Ve sonra $postback bırakılmıştır dizeleri atayın. Aşağıdaki fonksiyonu filtreleme yapar özellikle kodu if($error_message_key[$e] != $err_strings[$g]) ama çalışmak için görünmüyor. Hala array $error_message_key tüm dize değerlerini olsun.
$err_strings = explode('+', $catch_value);
for($e = 0; $e < count($error_message_key); ++$e)
{
for($g = 0; $g < count($err_strings)-1; ++$g)
{
if($error_message_key[$e] != $err_strings[$g])
{
$postback .= '&'.$error_message_key[$e].'='.$_POST[$error_message_key[$e]];
}
}
}
UPDATE: İşte diziler şunlardır:
$error_message_key = array('email','firstName','lastName','pwd','username','phone','street','city', 'country', 'postal','province');
$err_strings = array('lastName','pwd','username');
Array $err_strings aslında "lastName+pwd+firstName+" bir biçimde olan explode 'd dize $catch_value gelmektedir.
UPDATE:
Çıktı bir biçimde olması gerekir:
$postback = 'lastName=value&firstName=value&phone=value&....'
UPDATE: This is actually a script that responds if a user has wrong inputs in the form. The supposed to be stripped out string are names of the fields which would have the border color changed. The remaining string values are also names of the fields with correct inputs which would then be refilled with the same inputs... Please feel free to suggest another way of doing this if you think it's inappropriate...