You are here: Re: How to redirect after form submit? « PHP Programming Language « IT news, forums, messages
Re: How to redirect after form submit?

Posted by deko on 06/12/06 15:17

I tried this:

<?php

$valid_message = true;

if ($valid_message)
{
header("Location:http://bubba/send-confirm.php");
exit();
}
?>

And still got this:

Warning: Cannot add header information - headers already sent by (output started
....

Can I redirect another way?

The headers, probably, are being sent in the header section of the page.

Can this block of code be put above the DOCTYPE statement?

But then, how would the value of the $valid_message variable get set?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация