File name
Commit message
Commit date
File name
Commit message
Commit date
<?php
$name = $_POST["userName"];
$pw = $_POST["userPw"];
$fruit = $_POST["fruit"];
$fruits = $_POST["fruits"];
$date = $_POST["date"];
$text = $_POST["text"];
$hiddenValue = $_POST["hiddenValue"];
echo "My name is <strong>" . $name . "</strong><br>";
echo "Password is <strong>" . $pw . "</strong><br>";
echo "Fruit is <strong>" . $fruit . "</strong><br>";
/*----------------------for-------------------------*/
echo "<hr>";
echo "<h3>for</h3>";
$fruitsR = $_POST["fruits"];
echo "Fruits is <strong>";
for($i = 0; $i < count($fruitsR); $i++){
echo $fruitsR[$i] . ", ";
}
echo "</strong><br>";
/*-----------------------foreach------------------------*/
echo "<hr>";
echo "<h3>foreach</h3>";
echo "Fruits is <strong>";
foreach ($fruits as $i){
print $i . ", ";
}
echo "</strong><br>";
echo "<hr>";
/*--------------------------------------------------*/
echo "Date is <strong>" . $date . "</strong><br>";
echo "Text is <strong>" . $text . "</strong><br>";
echo "HiddenValue is <strong>" . $hiddenValue . "</strong><br>";