Hi this is my first post on here so any response would be greatly appreciated. I'm working on a complex php form and keeping getting this error when I click the submit button "Parse error: syntax error, unexpected T_VARIABLE in /weburl/process_form.php on line 3" line 3 is "$form = new ProcessForm();
" and just to give you an idea the code that follows is "
$form->field_rules = array(
'fullname'=>'required',
'dob'=>'required',
'nin'=>'required',
'agency'=>'required',
'contactno'=>'required',
'weekending'=>'required',
'journeydetails'=>'required',
'mileage'=>'required',
'publictransport'=>'required',
'totalamount'=>'required',
'safetyequipment'=>'required',
'totalamount2'=>'required',
'contracttickbox'=>'required',
);"
I've been working on this all day and cannot understand why I'm getting this error.