Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $a=2;
- //1-muzyka
- //2- filmik
- //3- zdjecie
- //4- link
- switch ($a) {
- case '1':
- echo '<embed width="200px" src="muzyka.mp3" autostart="false" controls="console"></embed>';
- break;
- case '2':
- echo '<iframe width="560" height="315" src="https://www.youtube.com/embed/zP7WHODAh5g" frameborder="0" gesture="media" allowfullscreen></iframe>';
- break;
- case '3':
- echo '<embed width="300px" src="pies.jpeg"></embed>';
- break;
- case '4':
- echo '<a href="https://youtube.com">Kliknij tutaj</a>';
- break;
- default:
- echo "Nie ma czegos takiego";
- break;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement