我尝试将其存储在数据库中,但为什么我的数据库在我提交后再次出现空白
<?php
require_once("connect.php");
$nama_file = $_FILES['imageUpload']['name'];
$category = $_POST['category'];
$sizes = $_POST['sizes'];
$fabric = $_POST['fabric'];
$total = $_POST['total'];
move_uploaded_file($_FILES['imageUpload']['tmp_name'], "images/".$_FILES['imageUpload']['name']);
$simpan = mysql_query("INSERT INTO pesanan(category,sizes,fabric, total,images,tshirt,bag,case,cap,bracelet) VALUES('$category','$sizes','$fabric','$total','$nama_file','80000','130000','100000','80000','50000')");
echo "Your add has been submited....";
header("Location: cart.php");
?>
这是我的表格html:
<form action="doOrder.php" method="post" enctype="multipart/form-data">
Category : <input type="hidden" name="category" value="T-SHIRT"> T-SHIRT
Choose Size
<label for="sizes"><span>
<input type="radio" name="sizes" value="S" checked="checked"/>S
<input type="radio" name="sizes" value="M" />M
<input type="radio" name="sizes" value="L" />L
<input type="radio" name="sizes" value="XL" />XL
</span>
</label>
Fabric Type
<select name="fabric">
<option value="Cotton Combed">Cotton Combed</option>
<option value="Cotton Carded">Cotton Carded</option>
<option value="Polyester / PE">Polyester / PE</option>
</select>
Total
<input type="number" name="total" min="1" max="100">
<input type="file" name="imageUpload" id="imageUpload">
<input value="Submit" type="submit" name="submit">
</form>
如果有人可以帮助我,我会在这个编码新手,并在此之前感谢你...