Can you echo and entire form? (php)?

Alexander R

New member
I'm trying to give different options to what a user selects on a previous form. For example if a user selects option 1, then he has options a b and c. If he pics option 2 then has option d e and f.

My code looks a little something like this

<form method="post" action="updatestudent2.php" id="updatestudent2">

<?php

if ($varea == "aerospace" ){

echo"

Session: 10:00 - 11:00
<select name= 1 >
<option value="forensics">Computer Forensics</option>
<option value="web">Web Development</option> ";
}
?>

I keep getting this error:


Parse error: syntax error, unexpected T_STRING, expecting

Am I on the right track, or is what im doing completely wrong?
 
Back
Top