PHP process page does not work
<p>Hi guys my process page does not work, my code is</p>

<pre><code>&lt;?php
$id = $_POST['item_id'];
$qty = $_POST['item_qty'];
$name = $_POST['item_name'];

$con = mysqli_connect ("localhost", "name", "password", "db");

// Check connection
if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }

$sql = "INSERT INTO Temp (id, qty, name)
VALUES
('$_POST[id]', '$_POST[qty]', '$_POST[name]')";

if (!mysqli_query($con, $sql))
    {
    die('Error: ' . mysqli_error());
    }

header('Location: http://url.com/');

mysqli_close($con);
</code></pre>

<p>?></p>

<p>Should be all correct, just copy from w3school,
The problem is, the db only get 0,</p>

<p>ie. my $id is 4, $qty is 12, $name is "Hello", after the process page, the table only get two 0s in id and qty, name is void.</p>

<p>The values should be processed to this process page successfully, bc I have tried</p>

<pre><code>echo $id, $qty, $name;
</code></pre>

<p>All are the same as I typed in before.</p>

<p>Could anyone help me? thanks :-)</p>
