Hey guys,
got a system here which I'l try and explain in lame mans terms.
Search > Customer page > Edit Customer.
The problem I am having is that it is not letting me carry that ID over.
E.g, I put John smith in, I get the customer Page which echo's all his information, I click update and it doesn't seem to send the information.
http://rhino.minepress.co.uk/Selectcustomer.php
Try typing in John for a test then scroll down to update at the bottom
in Customer.php:
<?PHP
$customer_id = $_GET['id'];
$query = "SELECT id,
customer_name,
customer_name_letterhead,
customer_notes,
systype,
status,
signaltype,
address,
postcode,
telephone,
mobile,
mobiletwo,
email,
mainarea,
installation,
Contract,
expiration,
SPA,
nservice,
maintenance,
monitoring,
MS,
certdate
FROM Customers
WHERE id = {$id}";
$result = mysql_query($query) or die('<p>' . $query . '</p><div>' .
mysql_error() . '</div>');
$customer = mysql_fetch_assoc($result);
?>
<form action="Update.php" method="post">
<input type="hidden" name="customer_id" class="customer_id" value="">
<input type="submit" value="Update">
</form>