Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
701 B
2
Indexable
Never
<?php
$q = $_POST['day'];

switch ($q) {
    case "monday":
        echo "Laugh on Monday, laugh for danger.";
        break;
    case "tuesday":
        echo "Laugh on Tuesday, kiss a stranger.";
        break;
    case "wednesday":
        echo "Laugh on Wednesday, laugh for a letter.";
        break;
    case "thursday":
        echo "Laugh on Thursday, something better.";
        break;
    case "friday":
        echo "Laugh on Friday, laugh for sorrow.";
        break;
    case "saturday":
        echo "Laugh on Saturday, joy tomorrow.";
        break;
    default:
        echo "invalid input!";
        break;
}

echo '<a href="a.html"><button>Go</button></a>';