You are here: Re: changing URLs after form submit « All PHP « IT news, forums, messages
Re: changing URLs after form submit

Posted by robert on 05/18/06 19:39

| Hi ED,
|
| I switched to an absolute URL with the same result....
| Warning: Cannot modify header information - headers already sent by
(output
| started at
| /home3/thetruth/thetruthsearch-www/explore/what_did_jesus_claim.php:7) in
| /home3/thetruth/thetruthsearch-www/explore/what_did_jesus_claim.php on
line
| 322

to simplify...

if you had a submit button in your form:

<input type=submit name=sendIt value="Submit">

then in your php, make this the FIRST set of code at the BEGINNING of your
script:

<?
$sendIt = isset($_POST['sendIt']);
if ($sendIt)
{
// your stuff to validate info here
// then...
header('location:http://yourdomain/your.thank.you.php.page');
exit;
}

then that would take care of the "headers already sent" error. then you
could get on with more important problems...like putting maxlength on your
input fields, etc..i typed a sermonette in even the smallest of the inputs
you had (the ones requiring only yes/no responses).

;^)

hth,

me

 

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

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