Something is wrong with POST i think, i cant send anything from page1.
Here is copy code from pages:
Page1 php:
<?php
include('include/common.php');
$aKlima = $_POST['formKlima'];
$klima1 = $_POST['klima1'];
if(empty($aKlima))
{
echo("");
}
else
{
if($aKlima == 'A')
{
$klima1 = 'Klima komore sa jednim ventilatorom za ubacivanje vazduha';
header("location:page2.php");
}
}
write_head();
$pageID = $_GET['id'];
write_header(4);
write_banner(4);
?>
Page1 html:
<form action="#" method="post">
<input type="radio" name="formKlima" value="A" checked="checked" />
<input type="radio" name="formKlima" value="B" />
<input type="radio" name="formKlima" value="C" />
<input type="radio" name="formKlima" value="D" />
<input type="hidden" name="klima1" value="misko" />
<input type="submit" name="formSubmit" value="Submit" />
Page2 php:
<?php
$klima1 = $_POST['klima1'];
include('include/common.php');
write_head();
$pageID = $_GET['id'];
write_header(4);
write_banner(4);
?>
Page2 html:
I want to see this on page2: <?php print $klima1; ?>
Problem is in POST method i think, because i wanted to sent value from any radio button ,and same i have nothing, empty. So i tried your solution, its the same, i get nothing on page2. Any other idea, please?
Thank you