|
error: syntax error at /usr/lib/cgi-bin/enroll.cgi line 629, near ")
{"
syntax error at /usr/lib/cgi-bin/enroll.cgi line 639, near "{"
Execution of /usr/lib/cgi-bin/enroll.cgi aborted due to compilation errors.
Code
sub signup
{
print qq!
<html> (bunch of stuff)...start at line 621
<option value="88">
1988
</option>
</select></td>
</tr>!;
If ($schoolrequired = 1)
{print qq!
<tr>
<td class="c6">School<br></td>
<td class="c6"><input maxlength="35" name="school"></td>
</tr>
!;}
If ( $emailrequired = 1)
{print qq!
<tr>
<td class="c6">Contact Email<br></td>
<td class="c6"><input maxlength="40" name="email"></td>
</tr>
!;}
If ( $phonerequired = 1)
{print qq!
<tr>
<td class="c6">Contact Phone<br></td>
<td class="c6"><input name="phonearea" value="" size="3" maxlength="3" type=
"text"> <input name="phoneprefix" value="" size="3" maxlength="3" type=
"text"> <input name="phonedigit" value="" size="4" maxlength="4" type="text">
<input name="verification" value="$ver" type="hidden"></td>
</tr>
!;}
print qq!
<tr>
<td class="c8">
<div class="c7">
<INPUT TYPE="image" SRC="http://localhost/Enter.jpg" HEIGHT="30" WIDTH="130" BORDER="0" ALT="Submit Form">
</div>
</td>
<td class="c8"><a href="enroll.html"><br></a></td>
</tr>
</tbody>
</table>
</div>
<div class="c2">
<br>
</div><br>
<br>
</form>
</body>
</html>
!;
}
# End of signup page
Wont it let me do that? It is calling me on a syntax error.
<Added>
Best not to sleep and type... if is if and not If.
|
|
|
|
|
|
|
|