16: A WAP Case Study
CADOCTYPE MI PUBLIC -//W3APPORTIME/DTD
Loggin In
Ugaz 37php echo $userid > created Go to a brot-Main phot#login Login p300 /
720
تسجيل الدخول
يقوم البرنامج النصي Login.php بتحقيق المصادقة على المستخدم. ويتم استدعاء هذا البرنامج من
Telude ance
include_once("sesFactory phot (include_once (ShoppingCart.php" )
بطاقة تسجيل الدخول في الصفحة الرئيسية:
header("Content-Type: text/vmd.wap.wml setSessionhandlers
ويتم تعيين معالجات جلسة العمل:
فيما تحذف الفراغات الزائدة من متحولي النموذج userId$ و password$ :
't the Fore variables are nul
SurerId = tein SaserIdi
إذا ما كان أحد المتحولين userid$ أو password بالقيمة null ، يتم إرسال صفحة خطأ:
Beni ferror Page She username and password you have enteredios Invalid. Please tri gasin
unchesult = loaduser iber Id
ويتم، بعد
نجاح المصادقة، تحميل المستخدم:
stianoReset returnValues null BendError Page
functionResult->errortessage:
ص ٧٢٠