Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$poll['answer1'] = "Test";
$poll['answer2'] = "Test2";
$poll['answer3'] = "Test3";
$poll['answer4'] = "Test4";
$poll['answer5'] = "Test5";
$poll['answer6'] = "Test6";
?>
<form id="poll" method="post">
<p><?=$this->vote; ?></p>
<input type="hidden" name="ip" id="ip" value="<?= $_SERVER['REMOTE_ADDR']; ?>" />
<input type="hidden" name="pollId" id="pollId" value="<?= $poll['id']; ?>" />
<?php for ($i=1; $i <= 8 ; $i++):
if($poll['answer'.$i] != NULL): ?>
<input type="radio" name="answer" value="<?= $i; ?>"> <?= $poll['answer'.$i]; ?> <br />
<?php endif;
endfor; ?>
<input type="submit" class="button" value="Гласувай" />
</form>
$("#mybutton").click(function(){
$.post("test.php", $("#testform").serialize());
$("#showresult").load("test.php")
});