update
This commit is contained in:
parent
a0c0ad030f
commit
0ca7a0de1a
@ -14,22 +14,25 @@
|
||||
<a href=""><img src="herb.png" alt="HERB"></a>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
<div class="form-container">
|
||||
<form action="page1.php">
|
||||
<input type="submit" value="ROZPOCZNIJ TEST" class="start">
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($_POST["p5"])) {
|
||||
if (isset($_POST["fin"])) {
|
||||
session_start();
|
||||
if(@$_POST['p5'] == 1385) {
|
||||
@$_SESSION['punkty']++;
|
||||
}
|
||||
echo "<h3>",'Punkty: ', @$_SESSION['punkty'],"</h3>";
|
||||
echo "<h3>",'Procent: ', $_SESSION['punkty']*100/5, "%</h3>";
|
||||
if (@$_SESSION['punkty'] <= 1) {
|
||||
echo '<h3>Ocena: 1','</h3>' ;
|
||||
}
|
||||
else {
|
||||
echo '<h3>Ocena: ',@$_SESSION['punkty'],'</h3>' ;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<input type="radio" name="p5" id="" value="1385"><span>1385</span><br>
|
||||
<input type="radio" name="p5" id="" value="1034"><span>1034</span><br>
|
||||
<br>
|
||||
<input type="submit" value="NASTĘPNE PYTANIE" class="next">
|
||||
<input type="submit" value="NASTĘPNE PYTANIE" class="next" name="fin">
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user