Hi there,
I have this code in a page:
if($_POST['add_customer']):
$obj->add_customer($_POST);
endif;
For your information at the top of the page i have this code:
<?php
include("db.php");
include("CMS-class.php");
$obj = new test();
$obj->host='secure';
$obj->username ='secure';
$obj->password = 'secure';
$obj->db ='secure';
$obj->connect();
?>
So - you see it uses a class and function in the page CMS-class.php
The problem is when it goes to CMS-class.php the code in the page finishes! I have alot of code on the page below this bit of code:
if($_POST['add_customer']):
$obj->add_customer($_POST);
endif;
so why is it stopping?
Matt.