Can you please post your code in code format.
- $reference = $_POST['searchref'];
-
$query = "SELECT AmberCatRequestId ";
-
$query.= "FROM Customer_Calls ";
-
$query.= "WHERE CustomerCallId = $reference";
-
-
$result = mssql_query($query);
-
if($row = mssql_fetch_object($result))
-
{
-
$ref = $row->AmberCatRequestId;
-
}
-
-
?>
your PHP code start with the line
$_POST['searchref']
but when you load your page for the first time there is no $_POST['searchref'] exists
take a closer look at
isset() function. you would definitely get an error. so what you can do is first make sure
whether $_POST['searchref'] exists. If it exists perform rest of the operation otherwise skip it.
Regards,
Johny