Looking for Programare Web: Back-end (sem. 6) test answers and solutions? Browse our comprehensive collection of verified answers for Programare Web: Back-end (sem. 6) at moodle.usm.md.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Răspunsul se prezintă sub formă de dare de seamă cu PrtSC (ScrinShoturi).
Dacă formularul din secțiunea de mai jos este trimis, cum puteți, în welcome.php, să scoateți valoarea din câmpul „prenume”?
// If the form in the white section below gets submitted, how can you, in welcome.php, output the value from the "first name" field?
<form action="welcome.php" method="post"> First name: <input type="text" name="fname"> </form><html>
<body>
Welcome <?php echo
; ?>
</body>
</html>
Analizați codul și scrieți în spațiul liber valoarea expresiei
<?php function aria_t($b, $h) { return $b * $h/2; }
$x = 2; $y = 6; echo(aria_t($x, $y));?>
Analizați codul și scrieți în spațiul liber valoarea expresiei
<?php $s = 0; $i = 7;
do { $s += $i + $i; $i++; } while ($i < 21); echo($s);?>
PHP este un limbaj de scripting de uz general, cu cod-sursă deschis.
Creați o sesiune numită favcolor".
// Create a session variable named "favcolor".
session_start();
["favcolor"] = "green";
Analizați codul, aflați valoarea expresiei și selectați răspunsul corect
<?php
$num = 789101110187; echo $num . " "; echo $num == strrev($num) ? " este palindrom" : " nu este palindrom";
?>
Care este valoarea lui $b ?
Este dată o matrice asociativă. Afișează "age" lui Ben.
Here you see an associative array. Output "age" of Ben.
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");
echo "Ben is " .
. " years old.";
Metoda POST face ca datele trimise prin formular să fie vizibile în URL
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!