Hi Rod,
Thanks for your reply. i tried what you have said and i am still getting an error. have a look at these files:
<?
//filename: CategoryFormHandler_cmpt.class
class CategoryFormHandler_cmpt {
var $parent;
var $name;
var $handleFunction;
function setFields(){
$this->parent = $parent;
$this->name = $name;
$this->handleFunction = $handleFunction;
}
}
?>
<?
//form.php
include_once("CategoryFormHandler_cmpt.class");
$CategoryFormHandler = new CategoryFormHandler_cmpt;
session_register("CategoryFormHandler");
?>
<form action="process_form.php" method=post>
<input type=text name="parent">
<input type=text name="name">
<input type=text name="handleFunction">
<input type=submit>
</form>
<?
//filename: process_form.php
include_once("CategoryFormHandler_cmpt.class");
$CategoryFormHandler = new CategoryFormHandler_cmpt;
session_start();
$CategoryFormHadnler->setFields();
print $parent."<br>";
print $name."<br>";
print $handleFunction."<p>";
?>
according to what you have said, this should work right? but i still get an error message saying that the function is being called to a non function. it seems really strange because there is no error on the instantiation of the object but when you try to call a method it complains that the object is not an object!!
any ideas?
Thanks
Ziad