You are here: Re: return to html « PHP Programming Language « IT news, forums, messages
Re: return to html

Posted by Erwin Moller on 06/06/07 15:45

zoilus wrote:

> Trying to write html form program that calls php prog. If php prog has
> problem with what was entered would like to return from php to html
> program.
>
> Is this possible and if so, how?
>
> TIA

Hi,

Plain html pages are not refered to as programs, just html files.
Unless the Javascript in them is worth calling a program. ;-)

What you need is something like this:
<?php
// just an example, we expect a formelement named firstname
// If not set, redirect to error.html
if (!isset($_POST["firstname"])){
// refuse
header("Location: http://www.example.com/error.html");
exit;
}

// do your normal processing here.

?>


Regards,
Erwin Moller

 

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

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