السلام عليكم ورحمة الله وبركاته
هذا فنكشن لحماية الحقول من Html، يستخدم وقت التعامل مع MySql في insert و update
هذا فنكشن لحماية الحقول من Html، يستخدم وقت التعامل مع MySql في insert و update
رمز PHP:
/*@ Function safein @*/
function safein($twe)
{
return htmlspecialchars(addslashes(trim($twe)));
}
function safein($twe)
{
return htmlspecialchars(addslashes(trim($twe)));
}
طريقة الإستخدام سهلة للغاية
رمز PHP:
$username = safein($_POST[username]
;

تحياتي