الفصل الثاني
30
البرنامج النصي track_press.php (تابع)
14. <h3>View Your Settings</h3>
15.
<p>Hello <b><?=$first?> <?=$last?></b>,
16. <p>Email: <?=$email?>
17.
<p>Your settings: <ul>
18.
<?
19.
20.
21.
22.
} else {
23.
24.
25.
while(list($key, $value) = each ($news_prefs)) {
if($value) {
$value = "Enabled";
$value = "Disabled";
print("<li class=$value>$key: $value</li>");
26.
}
27.
?>
28.
</ul>
29.
</body>
30. </html>
View Settings Microsoft Internet Explorer
View Favorites look
Back
Search
Adress
Lake
http://localhost/advancedphp/chapter02/track_prefs2.php
Customize Links Free Homal Window Windows Media
View Your Settings
Hello Faye Valentine,
Email: [email protected]
Your settings:
• Local: Disabled
Nation: Enabled
·
World: Enabled
• Comics: Disabled
Local tonet
track_prefs2.php
الشكل 2-2
ص٣٠