I am tyring to send visitors to diffrent pages depending on the radio button the select -- here is my HTML form
<form action="cardverse2.php" method="POST">
<td width="100" height="20" align="center" valign="center">
<input type="radio" name="verse_size" id="verse_size" value="small">
<td width="100" height="20" align="center" valign="center">
<input type="radio" name="verse_size" id="verse_size" value="medium">
<td width="100" height="20" align="center" valign="center">
<input type="radio" name="verse_size" id="verse_size" value="large">
<input type="submit" value="submit">
AND here is the php of cardverse2.php
<?
$verse_size = $_POST['verse_size'];
$smallurl = "small.html";
$medurl = "medium.html";
$largurl = "large.html";
if ($verse_size == "small" ) {
header( "Location: $smallurl" );
exit;}
elseif ($verse_size == "medium") {
header( "Location: $medurl" );
exit;}
elseif ($verse_size == "large "){
header( "Location: $largeurl ");
exit;}
?>
AND HERE IS THE ERROR THAT COMES UP
Warning: Cannot modify header information - headers already sent by (output started at cardverse2.php on line 19
Line 19 is my opening of php
<?
I have tried <?php
But what I would ideally like to do anyway is dosplay a different Paypal button at the bottom of a second form after the first form shown above.
I have tried
<?
if ($verse_size == "small") {
Echo '<PAYPAL HTML CODE, which is a really long form">
}
?>
ERROR: unexpected } on the line that I ended the if statement
AND
<?
if ($verse_size == "small") {
Print ("<PAypal code>")}
ERROR unexpected < on the line the Paypal code begins.
And
<?
if ($verse_size == "small") {
print (<PAypal code>)
Error Unexpected < on the line the paypal code begins.
Being able to do either of the above would make me over the moon -- someone please help me, trial and error error error error error is driving me mad.