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] 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
----------------------
IVEはいくつかのことを試してみましたが、私はこの問題を解決傾けます。とにかくこれは修正することができる はありますか?
<INPUT TYPE="Text" VALUE="username" NAME="username" method="POST">
あなたは<form name="myform" .....
の下でそれをコピーする必要があなたの<form>
の外側にあるので、私は、Dreamweaver CS5.5に
ありがとうございます! PHPのブロックスクリプトを手伝ってくれますか? – Elycin
あなたが私に詳細を与えるならば(mayba新しい質問に) – Eray