logo

Crowdly

Programare Web: Back-end (sem. 6)

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!

Este dată baza de date De la proiectul de cercetare cu tabele

Elaborați scripturi PHP ce va permite: afișarea înregistrărilor din tabel

 

Răspunsul se prezintă sub formă de dare de seamă cu PrtSC (ScrinShoturi).

View this question

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>

View this question

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));

?>

View this question

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);

?>

View this question

PHP este un limbaj de scripting de uz general, cu cod-sursă deschis.

View this question

Creați o sesiune numită favcolor".

// Create a session variable named "favcolor".

session_start();

["favcolor"] = "green";
View this question

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";

?>

View this question

Care este valoarea lui $b ?

  • $a = 'carte';

    $b = strlen($a)%3;
View this question

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.";
View this question

Metoda POST face ca datele trimise prin formular să fie vizibile în URL

View this question

Want instant access to all verified answers on moodle.usm.md?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!