Sahifa fonini berish misoli


Download 0.7 Mb.
bet24/26
Sana09.03.2023
Hajmi0.7 Mb.
#1255515
1   ...   18   19   20   21   22   23   24   25   26
Bog'liq
web dasturlash

holat satridagi soat






");
id.document.write("
");
id.document.write("

Change text into child window.

");
id.document.write("
");
id.document.write("");
id.document.write("
");
id.document.write("
");
id.document.write("

Type conversion sample





Joriy kun va vaqt



echo "
Salom, bu mеn – PHP skript!
";
?>


Salom, bu mеn – PHP skript!


Cookie ning qiymatini o’qish <\Hl>
Cookie ning qiymati:
if (isset ($_COOKIE ['message']))
{
echo Cookie ning qiymati:' . $_COOKIE ['message' ] ;
}
else
{
echo 'Cookie o’rnatilmagan' ;
}
?>
<\CENTER;.

<\HTML>
Cookie massivlarda ham tashkil etilgan bo’lishi mumkin. Masalan quyida uchta cookie o’rnatilgan:
setcookie ("cookie[one]" , "Bugun");
setcookie ("cookie[two] ", "Hayot");
setcookie ("cookie[three] ", "go’zal!") ;
Natijada $_COOKIE['cookie'] massiv qiymatlari quyidagi tarzda bosmaga chiqarilishi mumkin:
if (isset ($_COOKIE ['cookie'])) {
foreach ($_COOKIE'['cookie'] as $data)
{
echo "$data
";



  1. Download 0.7 Mb.

    Do'stlaringiz bilan baham:
1   ...   18   19   20   21   22   23   24   25   26




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling