[eluser]amites[/eluser]
Hello,
Running into a new one for me, I created several forms and saved all the form validation data into an array in config/form_validation.php
this has worked great for me since 1.7 was released,
now I am having trouble with the HWS server
Parse error: syntax error, unexpected T_VARIABLE in [full DIR]/application/config/form_validation.php on line 1
any ideas?
my form_validation.php files looks like:
Code:
<?php
$config['signup'] = array(
array(
'field' => 'name',
'label' => 'Full Name',
'rules' => 'xss_clean|required'
),
array(
'field' => 'spouse',
'label' => 'Spouses Name',
'rules' => 'xss_clean'
),
array(
'field' => 'kids',
'label' => 'Do you have children?',
'rules' => 'xss_clean'
),
array(
'field' => 'kids_num',
'label' => 'How Many Kids?',
'rules' => 'xss_clean|numeric'
),
array(
'field' => 'phone',
'label' => 'Phone Number',
'rules' => 'xss_clean'
),
array(
'field' => 'fax',
'label' => 'Fax',
'rules' => 'xss_clean'
),
array(
'field' => 'email',
'label' => 'E-Mail',
'rules' => 'xss_clean|valid_email'
),
array(
'field' => 'address',
'label' => 'Address',
'rules' => 'xss_clean|required'
),
array(
'field' => 'state',
'label' => 'State',
'rules' => 'xss_clean|required'
),
array(
'field' => 'zip',
'label' => 'Zip',
'rules' => 'xss_clean|required'
),
array(
'field' => 'status',
'label' => 'Current Status?',
'rules' => 'xss_clean|required'
),
array(
'field' => 'employment',
'label' => 'Employment Status',
'rules' => 'xss_clean|required'
),
array(
'field' => 'income',
'label' => 'Current monthly income?',
'rules' => 'xss_clean|required'
),
array(
'field' => 'reason',
'label' => 'Reason for financial distress?',
'rules' => 'xss_clean|required'
),
array(
'field' => 'payment',
'label' => 'Current mortgage payment?',
'rules' => 'xss_clean|numeric|required'
),
array(
'field' => 'behind',
'label' => 'How many months behind?',
'rules' => 'xss_clean|numeric|required'
)
);
$config['auth'] = array(
array(
'field' => 'x_description',
'label' => 'Purpose of Donation',
'rules' => 'required|xss_clean'
),
array(
'field' => 'x_amount',
'label' => 'Amount of Donation',
'rules' => 'xss_clean|required|numeric'
),
array(
'field' => 'x_cust_id',
'rules' => 'xss_clean|numeric'
),
array(
'field' => 'x_recurring_billing',
'label' => 'Monthly donation',
'rules' => 'xss_clean|numeric'
)
);
?>