its me again...
look, i really appreciate your help! it means very much to me but as i said its really late (2.10am) and my headache is getting stronger and stronger and i just cant stand it anymore. the only problem is that i must have this thing finished at 8.00am today!!!
im sorry if i sound like a lamer but maybe i really am 🙂
ill try to post this problem to all sections of this forum and i hope that there will be some good answer that will save my ass when i wake up...
ps: weedpacket, your replies make me think in different (better) ways and things are getting clearer... 🙂 thanks!
so, from the begging:
i have a form with various fields (textboxes, radio buttons and checkboxes). some fields MUST be filled and that is schecked through check.php file. that file looks like this:
<?php
function checkit($varname)
{
$chk = $_POST[$varname];
echo "$submit_f_charter_hr: $chk<br>\n";
return !empty($chk);
}
error_reporting(63);
error_reporting (E_ALL);
$chkflag = true;
if(!empty($_POST['submit_f_charter_hr']))
{
if ($chkflag) checkit('model_jahte');
if ($chkflag) checkit('br_kabina');
if ($chkflag) checkit('br_kreveta');
if ($chkflag) checkit('br_putnika');
if ($chkflag) checkit('skiper');
if ($chkflag) checkit('mjesto_polaska');
if ($chkflag) checkit('datum_polaska');
if ($chkflag) checkit('trajanje');
if ($chkflag)
header("Location: osobni_hr.php");
else
header("Location: nepotpuna_hr.html");
}
else
header("Location: neposlana_hr.html");
?>
submit_f_charter_hr is the name of the button on the first page...
so, if all required fields are filled user should be redirected to osobni_hr.php where is another form. if some required fields are not filled he should be redirected to nepotpuna_hr.html and if there was some other problem he should go to neposlana_hr.html.
(btw: osobni_hr means something like personal information, nepotpuna_hr is a warning page that some fields are not filled and neposlana_hr says that there was a problem, please email blah blah...)
you can see this thing in live at http://www.mesmerized.ws/dimare/f-charter_hr.html. just click on 'salji' button.
and the problem is that whatever i do i am redirected to neposlana_hr.html.
i really dont know why this is happening and even if there was lots of explanations and good advices its still not working.