lauraSatellite
Technical User
hi,
i have the following page:
When i select a radio-button, all goes well.
If i dont select one, "You must make a selection!" along with the back button is displayed. When i click the back button i return to page1.php, but the "page loaded with errors" symbol is present. When i click this it tells me i have an error:
line 7,
Char 14,
Expected ';'
on page1.php
This corresponds to a location between the <title> tags which makes no sence to me.
Any ideas on this would be appreciated.
Thanks.
i have the following page:
Code:
[i]
<?php
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>
<html>
<head>
<title>Page 1</title>
</head>
<body>
<p>Please select one of the following:</P>
Options:
<br><br>
<form method="POST" action="page2.php">
<input type=radio name=option value=1>Text file<BR>
<input type=radio name=option value=2>HTML file<BR>
<input type=radio name=option value=3>Excel file<BR>
<input type=radio name=option value=4>Word file<BR>
<button type="submit">Continue</button>
</form>
</body>
</html>
[/i]
On the next page, page2.php i have:
[i]
<?php
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>
<html>
<head>
<title>Page 2</title>
</head>
<?php
if(!(isset($_POST['option'])))
{ print "You must make a selection!";
?>
<P>
<body>
<button type="back"onclick="history.back()">Back</button></P>
<?php
}
else
{ <body>
//some code for the body
}
</body>
</html>
[/i]
When i select a radio-button, all goes well.
If i dont select one, "You must make a selection!" along with the back button is displayed. When i click the back button i return to page1.php, but the "page loaded with errors" symbol is present. When i click this it tells me i have an error:
line 7,
Char 14,
Expected ';'
on page1.php
This corresponds to a location between the <title> tags which makes no sence to me.
Any ideas on this would be appreciated.
Thanks.