thanx. btw whats ment by that 'index'? about the code: i thought it would be too much for the beginning. but you're right. i'm quite sure that there's nothing wrong with my code 'coz i copy/pasted from a previous working document. however, here it is:
<?
phplib includes
$PHPLIB['libdir'] ='../phplib/';
include($PHPLIB['libdir'].'oohforms.inc');
own includes
include('defines.inc');
instances
$f = new form;
elements definition
reset($menuelements);
while(list($k,$v) = each($menuelements)){
$f->add_element($v);
}
?>
and the included defines.inc contains the following:
<?
form elements
$menuelements = array(
'entry' => array(
'name' => 'entry',
'type' => 'text',
'size' => 50,
'maxlength' => 50,
'valid_e' => 'entry: error ',
'valid_regex' => '[a-zA-Z\ .-]+$',
'extrahtml' => 'STYLE="width:230px" CLASS="form"'),
'type' => array(
'name' => 'art',
'type' => 'text',
'size' => 3,
'maxlength' => 1,
'valid_e' => 'type: error ',
'valid_regex' => '[mse]+$',
'extrahtml' => 'STYLE="width:30px" CLASS="form"'),
'submit' => array(
'name' => 'submit',
'type' => 'submit',
'value' => 'submit',
'extrahtml' => 'STYLE="width:100px" WIDTH="100" BORDER="0" ALT="submit"')
);
?>
even if i add an element directly from the php document the same errors occur.
i have to use a local phplib 'coz the provider only got php installed. i'm still testing the files locally on my comp. (apache,php,phplib,mysql) the problem may be in there.
i really don't have an idea how to fix this problem. thanx in advance.