I am getting following parse error. I saw the same question posted back in Feb. but saw no reply. I know there is something wrong with my else statements.....I have worked for hours and cannot see the problem which is most likely obvious to someone with more experience. Below is script
the line ...echo test I just threw in there until I can work thru this error. that is where editing of data will be.
<body>
<?php
if (isset($_POST[submit]))
{ { if ($department == "department") ; //here is where data validation
echo Please select a department;}
else
{echo test;}}
else {
?>
//here is where form goes out
<H1 align=center> <font color ="#990033"> Faculty Research Needs Assessment </font></H1>
<body>
<form action="forms2.php" method="post">
<center>
<B>Department:</B>
<select name="department">
<option value="department">department
<option value="chemistry">chemistry
<option value="mathematics">mathematics
<option value="business">business
</select>
<b>Years at the University:</b>
<input type="text" name="years" size=2 maxlength=2>
<b>Teaching Load (no. of classes):<b>
<input type="text" name="load" size=2 maxlength=2>
<br>
<br>
<hr size="5" width="80%" align="center">
<br>
<b>What types and topics of professional development experiences related to research<br>
or research methodologies would be most relevant to you?<b><br><br>
<textarea name="relevance" rows=12 cols=60 wrap></textarea>
<p>
<b>What are your own research agendas and interests?<b><br><br>
<textarea name="interests" rows=12 cols=60 wrap></textarea>
<p>
<b>What challenges do you face in addressing your own research agenda?<b><br><br>
<textarea name="challenges" rows=12 cols=60 wrap></textarea>
<p>
<b>What specific research software needs do you have?<b><br><br>
<textarea name="software" rows=12 cols=60 wrap></textarea>
<p>
<b>What resources does your department and/or schoolprovide to support your research <br>
interests or those of other faculty members?<b><br><br>
<textarea name="resources" rows=12 cols=60 wrap></textarea>
<p>
</center>
</form>
}
</body>
I am getting following parse error. I saw the same question posted back in Feb. but saw no reply. I know there is something wrong with my else statements.....I have worked for hours and cannot see the problem which is most likely obvious to someone with more experience. Below is script
the line ...echo test I just threw in there until I can work thru this error. that is where editing of data will be.
<body>
<?php
if (isset($_POST[submit]))
{ { if ($department == "department") ; //here is where data validation
echo Please select a department;}
else
{echo test;}}
else {
?>
//here is where form goes out
<H1 align=center> <font color ="#990033"> Faculty Research Needs Assessment </font></H1>
<body>
<form action="forms2.php" method="post">
<center>
<B>Department:</B>
<select name="department">
<option value="department">department
<option value="chemistry">chemistry
<option value="mathematics">mathematics
<option value="business">business
</select>
<b>Years at the University:</b>
<input type="text" name="years" size=2 maxlength=2>
<b>Teaching Load (no. of classes):<b>
<input type="text" name="load" size=2 maxlength=2>
<br>
<br>
<hr size="5" width="80%" align="center">
<br>
<b>What types and topics of professional development experiences related to research<br>
or research methodologies would be most relevant to you?<b><br><br>
<textarea name="relevance" rows=12 cols=60 wrap></textarea>
<p>
<b>What are your own research agendas and interests?<b><br><br>
<textarea name="interests" rows=12 cols=60 wrap></textarea>
<p>
<b>What challenges do you face in addressing your own research agenda?<b><br><br>
<textarea name="challenges" rows=12 cols=60 wrap></textarea>
<p>
<b>What specific research software needs do you have?<b><br><br>
<textarea name="software" rows=12 cols=60 wrap></textarea>
<p>
<b>What resources does your department and/or schoolprovide to support your research <br>
interests or those of other faculty members?<b><br><br>
<textarea name="resources" rows=12 cols=60 wrap></textarea>
<p>
</center>
</form>
}
</body>
|
|
Search Webmaster Help and Solution
unexpected T_ELSERelated ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
