Hej, mam taki problem z kodem PHP ponieważ zrobiłem quiz na stronie i za ten quiz odpowiada też inny plik (nazwa gora.php) mam taki kod poniższy NR 1 no więc gdy odpowiem dobrze lub nawet źle i klikam na 'Wyślij' w quizie to powinno mnie przekierunkować na adresforum/usercp.php?action=top (ten kod niżej odpowiada za to) lecz daje mnie do samego usercp.php
NR 1:
<title>{$mybb->settings['bbname']} - Przejdź dalej/Popraw błędy!
</title> {$headerinclude}
{$header}
<table width="100%" border="0" align="center"> {$usercpnav}
{$errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <td class="trow2" width="40%"><strong><center><iframe scrolling="no" height="600"" frameborder="0" width="600" src="gora.php"></iframe></center></strong><br /><br /></td> {$footer}
góra.php
<?php
$punkt = 0;
$wykonal = false;
{
if ($_GET['f5'] == '1') $punkt += "0";
if ($_GET['f5'] == '2') $punkt += "0";
if ($_GET['f5'] == '3') $punkt += "0";
if ($_GET['f5'] == '4') $punkt += "1";
}
{
if ($_GET['f6'] == '1') $punkt += "0";
if ($_GET['f6'] == '2') $punkt += "0";
if ($_GET['f6'] == '3') $punkt += "0";
if ($_GET['f6'] == '4') $punkt += "1";
}
{
if ($_GET['f7'] == '1') $punkt += "1";
if ($_GET['f7'] == '2') $punkt += "0";
if ($_GET['f7'] == '3') $punkt += "0";
if ($_GET['f7'] == '4') $punkt += "0";
}
{
if ($_GET['f8'] == '1') $punkt += "0";
if ($_GET['f8'] == '2') $punkt += "1";
if ($_GET['f8'] == '3') $punkt += "0";
if ($_GET['f8'] == '4') $punkt += "0";
}
{
if ($_GET['f9'] == '1') $punkt += "1";
if ($_GET['f9'] == '2') $punkt += "0";
if ($_GET['f9'] == '3') $punkt += "0";
if ($_GET['f9'] == '4') $punkt += "0";
}
if (!empty($_GET['f10'])) {
if ($_GET['f10'] == '1') $punkt += "1";
if ($_GET['f10'] == '2') $punkt += "0";
if ($_GET['f10'] == '3') $punkt += "0";
if ($_GET['f10'] == '4') $punkt += "0";
}
if (!empty($_GET['f11'])) {
if ($_GET['f11'] == '1') $punkt += "0";
if ($_GET['f11'] == '2') $punkt += "0";
if ($_GET['f11'] == '3') $punkt += "1";
if ($_GET['f11'] == '4') $punkt += "0";
}
if (!empty($_GET['f12'])) {
if ($_GET['f12'] == '1') $punkt += "0";
if ($_GET['f12'] == '2') $punkt += "0";
if ($_GET['f12'] == '3') $punkt += "0";
if ($_GET['f12'] == '4') $punkt += "1";
}
if (!empty($_GET['f13'])) {
if ($_GET['f13'] == '1') $punkt += "0";
if ($_GET['f13'] == '2') $punkt += "1";
if ($_GET['f13'] == '3') $punkt += "0";
if ($_GET['f13'] == '4') $punkt += "0";
}
if (!empty($_GET['f14'])) {
if ($_GET['f14'] == '1') $punkt += "0";
if ($_GET['f14'] == '2') $punkt += "1";
if ($_GET['f14'] == '3') $punkt += "0";
if ($_GET['f14'] == '4') $punkt += "0";
}
if($punkt <= 9) {
echo "<p><span style=\"color: #CC0000\">Formularz został błędnie uzupełniony, popraw błędy.</span></p>"; $wykonal = false;
}
else {
echo "<p><span style=\"color: #66CC00\">Gratulację wszystkie odpowiedzi podane przez Ciebie są poprawne, miłej gry!</span></p>"; echo "<p><a href=\"rejestracja4.php\" style=\"width:100%\">PrzejdĽ do formularza zakładania postaci</a></p>"; $wykonal = true;
}
?>