Daot Lagorille
10-29-2003, 09:21 AM
I have a spiffy survey form that works great, except that it doesn't because when I submit I get this error:
Cannot modify header information - headers already sent by
I have traced the problem down to this:
I have several select field in the page that display contingent upon the value of a variable that is sent from a previous screen. The variables are all declared at the top, with the values equal to the HTTP_GET_VARS.
The dynamic display code looks like this:
<?php if ($varCOMM == 'yes') { ?>
<select>blah</select>
<?php } ?>
I have 8 of the above bits. With the above php commented out - no problem.
With it, the aftorementioned error.
Please send help, and food.
Cannot modify header information - headers already sent by
I have traced the problem down to this:
I have several select field in the page that display contingent upon the value of a variable that is sent from a previous screen. The variables are all declared at the top, with the values equal to the HTTP_GET_VARS.
The dynamic display code looks like this:
<?php if ($varCOMM == 'yes') { ?>
<select>blah</select>
<?php } ?>
I have 8 of the above bits. With the above php commented out - no problem.
With it, the aftorementioned error.
Please send help, and food.