Posted by paul814 on 11/20/07 20:17
this is what I get:
index of selected radio button is: 0
Warning: Cannot modify header information - headers already sent by
(output started at C:\xampp\htdocs\production\select.php:10) in C:
\xampp\htdocs\production\select.php on line 15
with this code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Times Publishing Company / Production Report</title>
</head>
<body>
index of selected radio button is:
<?PHP
$selected_radio = $_POST['radReadWrite'];
echo $selected_radio;
if($selected_radio == 0){
header('Location: http://localhost/production/index3.php');
exit;
}
?>
</body>
</html>
On Nov 20, 3:03 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 20 Nov 2007 20:41:49 +0100, <paul...@excite.com> wrote:
> > How can I open a page based on this IF:
>
> > Code:
>
> > if ($selected_radio = = '0') {
> > WHAT NEEDS TO GO HERE IF I WANT TO OPENhttp://localhost/index3.php
> > }
>
> if($selected_radio == 0){
> header('Location:http://localhost/index3.php');
> exit;}
>
> --
> Rik Wasmus
[Back to original message]
|