Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML5>
- <html>
- <head>
- <meta charset="UTF8"/>
- <title>Zadaca 2</title>
- <script type="text/javascript">
- function poraka() {
- var a = document.getElementById('Text1').value;
- var b = document.getElementById('uime1').value;
- var pol1 = document.getElementById('pol1');
- var pol2 = document.getElementById('pol2');
- if(pol1.checked) pol = pol1.value;
- if(pol2.checked) pol = pol2.value;
- var x = document.getElementById("genre");
- zanr = x.options[x.selectedIndex].value;
- if ((a == null || a == "") || (b == null || b == "")) {
- alert("Popolnete gi site polinja");
- } else {
- alert(a + " " + b + " " + pol + " " + zanr + " uspesno se prijavivte za XFactor!");
- }
- }
- </script>
- </head>
- <body>
- <h2>Форма за пријавување на X-Factor</h2>
- <table>
- <tr>
- <td><label for="name">Име</label></td>
- <td colspan="2">
- <input type="text" id="Text1">
- </td>
- </tr>
- <tr>
- <td><label for="email">Уметничко име</label></td>
- <td colspan="2">
- <input type="uime" id="uime1">
- </td>
- </tr>
- <tr>
- <td><label for="sex">Пол</label></td>
- <td>
- <input type="radio" id="pol1" name="pol" value="Машки"
- checked="checked"/>
- Машки</td>
- <td>
- <input type="radio" id="pol2" name="pol" value="Женски"/>
- Женски</td>
- </tr>
- <tr>
- <td><label for="genre">Жанр:</label></td>
- <td colspan="2">
- <select name="genre" id="genre">
- <option value="Classical Music">Classical Music</option>
- <option value="Hip Hop / Rap">Hip Hop / Rap</option>
- <option value="Jazz">Jazz</option>
- <option value="Pop (Popular music)">Pop (Popular music)</option>
- <option value="R&B / Soul">R&B / Soul</option>
- <option value="Reggae">Reggae</option>
- <option value="Rock">Rock</option>
- </select></td>
- </tr>
- <tr>
- <td colspan="3">
- <input type="submit" name="submit" id="submit1" value="Пријави се" onclick="poraka()"/>
- </td>
- </tr>
- </table>
- </from>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment