0
내가 온라인 상점에 게시하려고하면 사용자 이름이 표시되지 않지만 항목이 표시됩니다.포스트가 나오지 않는 이유
HTML :
<style type="text/css">
body {
background-image: url(abstractsdark6.jpg);
}
body,td,th {
color: #FFF;
}
</style>
<center>
<p> </p>
<p><img src="tengokucraftshop.png" width="1002" height="215">
<p><span style="font-family:'Myriad Web Pro'; font-size:12pt">Thank you for Buying a 1 Time Access to Anything that we listed for $10</span>
<p style="font-family:'Myriad Web Pro'; font-size:12pt">Please Insert Your Minecraft Username Below.</p>
<INPUT TYPE="Text" VALUE="username" NAME="username" method="POST">
<p> </p>
<p style="font-family:'Myriad Web Pro'; font-size:12pt">Item You Wish to Buy:</p>
<form name="myform" action="purchaseconfirm.php" method="POST">
<div align="center">
<select name="item">
<option value="10k Cash ingame ">$10,000.00 In Game Cash - iConomy</option>
<option value="Diamond Set(Armor and Wep/tools x2)">Full Set of All Diamond (Includes Armor and Tools/Wepons) x2</option>
<option value="item">item</option>
</select>
<p style="font-family:'Myriad Web Pro'; font-size:12pt">If you Abuse this and the paypal logs are checked. you will not recieve your item as you are breaking our Rules and as a consequense you will not recieve your item.</p>
<p style="font-family:'Myriad Web Pro'; font-size:12pt">Please Send us A Screenshot of your Payment Proof to [email protected].com with your Computer Clock Being Shown, it is easy to tell a Fraud Image. Dont Try. </p>
<p style="font-family:'Myriad Web Pro'; font-size:12pt">After your Purchase you will be Banned from Tengokucraft Shop for: 1 week (168 Hours or 10,080 Minutes or 604,800 Seconds), This is a Security Measure</p>
<p style="font-family:'Myriad Web Pro'; font-size:12pt"><BR />
<input type="submit" value="Pressing this Button You agree to the Terms Above and Schedrule the Item to be Given To you">
</p>
</form>
PHP :
<?php
$directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']);
$logfile= $_SERVER['DOCUMENT_ROOT'] . $directory_self . 'purchases.html';
$logdetails= date("F j, Y, g:i a") . ' : <br>Username:<br> ' . $_POST['username'] . ' <br>Item Purchased:<br> ' . $_POST['item'] . '</p>';
$fp = fopen($logfile, "a");
fwrite($fp, $logdetails);
fwrite($fp, " <br>----------------------<br>");
fclose($fp);
echo "Your Purchase And your Item Request Was Recieved. it Will Now be Schedruled to Be given to you in the Post Office!, You have been Banned for 1 Week as a Security Measure. Thank you!";
?>
결과 :
DATE(ignore this i removed it) :
Username:
Item Purchased:
10k Cash ingame
----------------------
필자는 몇 가지를 시도하고 내가이 문제를 해결하지 못할. 어쨌든이 문제를 해결할 수 있습니까? 내가
<INPUT TYPE="Text" VALUE="username" NAME="username" method="POST">
당신은 <form name="myform" .....
아래에 복사 할 필요가 당신의 <form>
의 외부에
고마워요! PHP 시간 차단 스크립트로 나를 도울 수 있습니까? – Elycin
당신이 저에게 자세한 내용을 주시면 (새로운 질문에 mayba) – Eray