otóż mam taki formularz zamówienia,
<form method="post" action="zamow.php"> <table width="400" border="0" align="center"> <tr> <td width="150" align="left"><p><label>PayPal E-mail</label></p></td> <td width="250" align="left"><input type="text" name="pemail" size="25" maxlength="100" autocomplete="off" class="field" value="" tabindex="1" /></td> </tr> <tr> <td width="150" align="left"><p><label>Opis</label></p></td> <td width="250" align="left"><input type="text" name="description" size="25" maxlength="100" autocomplete="off" class="field" value="" tabindex="2" /></td> </tr> <tr> <td width="150" align="left"><p><label>Link</label></p></td> <td width="250" align="left"><input type="text" name="url" size="25" maxlength="150" autocomplete="off" class="field" value="http://" tabindex="3" /></td> </tr> <tr> <td width="150" align="left"><p><label>Wybierz plan:</label></p></td> <td width="250" align="left"><select name="plan" class="combo" tabindex="4" /> <option value="<? require ('config.php'); $sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='500'"; ?>"><?= $row["howmany"] ?> Wizyt $<?= $row["price"] ?></option>
plik w którym jest to odbierane wygląda tak
<? require('config.php'); include('footer.php'); } function limpiarez($mensaje) { return $mensaje; } function getRealIPe() { if( $_SERVER['HTTP_X_FORWARDED_FOR'] != '' ) { $client_ip = $_SERVER['REMOTE_ADDR'] : $_ENV['REMOTE_ADDR'] : "unknown" ); { { // <a href=\"http://www.faqs.org/rfcs/rfc1918.html\" target=\"_blank\">http://www.faqs.org/rfcs/rfc1918.html</a> '/^0./', '/^127.0.0.1/', '/^192.168..*/', '/^172.((1[6-9])|(2[0-9])|(3[0-1]))..*/', '/^10..*/'); if ($client_ip != $found_ip) { $client_ip = $found_ip; break; } } } } else { $client_ip = $_SERVER['REMOTE_ADDR'] : $_ENV['REMOTE_ADDR'] : "unknown" ); } return $client_ip; } $pemail=limpiarez($_POST["pemail"]); $plan=limpiarez($_POST["plan"]); $url2=limpiarez($_POST["url"]); $description=limpiarez($_POST["description"]); $bold=limpiarez($_POST["bold"]); $highlight=limpiarez($_POST["highlight"]); $laip = getRealIPe(); require ('config.php'); $query = "INSERT INTO tb_advertisers (pemail, plan, url, description, category, ip, bold, highlight) VALUES('$pemail','$plan','$url2','$description','$category','$laip','$bold','$highlight')"; $sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='1000'"; $wop=$row["howmany"]; $wop1=$row["bold"]; $wop2=$row["highlight"]; if ($plan==$wop){ ?> <? $precio=$row["price"]; if ($bold==1){ $precio=$row["price"]+2.00; } if ($highlight==1){ $precio=$row["price"]+3.00; } if ($bold==1 && $highlight==1){ $precio=$row["price"]+2.00+3.00; } ?>
i teraz mam problem bo ostatnio dostałem e miala iż w tym kodzie jest błąd lecz ja nie znalazłem nic w nim:(
sprawdziłem kilka razy i nic nie potrafię znaleźć
czy mógłby mi ktoś pomóc