Sep 18th, 2009, 11:21 AM
Hi msaz87,
Ah - this is due to the PHP error notification level. I have it cranked up really high so that I can hear about all problems like this. You can fix it in two ways:
1. In your config.php file, add the following line:
That will tell it to only report genuine errors, not notices (minor, potential problems) like the ones you described.
2. In your form, add a "@" symbol before referencing the $fields variables. This suppresses minor warnings/notifications, like undefined indexes. For example:
Hope this helps!
- Ben
Ah - this is due to the PHP error notification level. I have it cranked up really high so that I can hear about all problems like this. You can fix it in two ways:
1. In your config.php file, add the following line:
PHP Code:
$g_default_error_reporting = 1;
That will tell it to only report genuine errors, not notices (minor, potential problems) like the ones you described.
2. In your form, add a "@" symbol before referencing the $fields variables. This suppresses minor warnings/notifications, like undefined indexes. For example:
Code:
<select name="Played_Before" class="registration">
<option <?php if (@$fields["Played_Before"] == "Select One") echo "selected"; ?>>Select One</option>
<option <?php if (@$fields["Played_Before"] == "Yes") echo "selected"; ?>>Yes</option>
<option <?php if (@$fields["Played_Before"] == "No") echo "selected"; ?>>No</option>
</select>
Hope this helps!
- Ben