0
我想要PHP只發送圖像,但我不爲什麼我也獲得圖像的代碼,如果你看到提供的圖像中的結果。並請幫我多用這種項目:https://slate.sheridancollege.ca/d2l/common/viewFile.d2lfile/Database/ODIxOTQyNw/Assignment%204.docx?ou=352080php從計算機添加圖像到php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Your Tim Horton's Order</title>
</head>``
<body bgcolor="#E5E59F">
<h1>Thank You For Your Order. Here you go:</h1>
<section>
<?php
$coffee = $_REQUEST['coffee'];
$size = $_REQUEST['size'];
$cream = $_REQUEST['cream'];
$sugar = $_REQUEST['sugar'];
$coffeeC = 1;
$creamC = 1;
$sugarC = 1;
for ($sub = 1; $sub <= $coffee; $sub++){
echo $smallCup;
}
echo '<img src="cup.jpg" alt="" height="80" width="50" >';
echo '<img src="cup.jpg" alt="" height="80" width="50" >';
echo '<img src="cup.jpg" alt="" height="80" width="50" >';
echo '<img src="cup.jpg" alt="" height="80" width="50" >';
?>
</section>
</body>
</html>
你的代碼是什麼意思。你也應該複製你的最終html看起來像 –
你沒有安裝PHP。 – Ibu