Umm... read your logic outloud:
IF the $new_course variable is set:
[indent]IF the $new_course variable IS NOT EQUIVILANT TO an empty string:
[indent]echo an error, and exit[/indent]
[/indent]
Anyone else notice a problem?
Shouldn't it be:
<?php
if(isset($new_course))
{
if($new_course == '')
{
echo '<p>Please enter a new course</p>
<p><a href="javascript:history.back(1)">Return</a></p>';
exit;
}
}
Or, as in the original code:
if(!isset($new_code) || $new_code=='')
{
echo '<p>Please enter a new course</p>
<p><a href="javascript:history.back(1)">Return</a></p>';
exit;
}
~Brett