<?php // some of the php code is in dutch
$graden_celcius=0; // dutch for degrees celcius
$html = <<< OET
Hoe warm is het nu? // dutch for " whats the temperature now?"
<br />
<form action="#" method="post">
In graden celcius :
<input type="text" name="dob" value="" />
<br />
<input type="submit" name="submit" value="Tempr" />
</form>
OET;
if(isset($_POST['submit'])){
if($graden_celcius>=0&&$graden_celcius<=30)
echo '<body style="background-color:yellow">';
else
echo '<body style="background-color:red">';
}else
{
echo $html;
}
?>
mardi 25 octobre 2016
How do i get a red webpage, i only get yellow (i`m a beginner)
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire