Reply to Re: Form Validation

Your name:

Reply:


Posted by peebrain on 06/25/05 04:44

Ken Robinson wrote:
>
> peebrain wrote:
>
>
>>... My problem though is if form
>>validation fails on "page 2.php" (where the form data was submitted and
>>the validation performed), how do I return the user to "page1.php" to
>>try again?
>
>
> Why do you need separate scripts?
>
> To answer your question, you use the header() function.
> www.php.net/header
>
> Ken
>

Good one Ken. That will be very useful if not in this case then in other
situations where I want to redirect to another page.
8< --------------
header("Location: http://www.example.com/"); /* Redirect browser */
8< --------------
thanx.
The reason for two pages is that the data submitted by the first form
gets loaded up into a different form. This could all be done in one
script but logically made sense to two separate purpose scripts.

[Back to original 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

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