You are here: Re: help with posting conditional if statement « PHP Programming Language « IT news, forums, messages
Re: help with posting conditional if statement

Posted by Rami Elomaa on 05/06/07 06:07

Art kirjoitti:
> Geoff, I'm just trying to have validation in my form. I check to see if
> certain fields have values, if all the required fields have values, i want
> to sent the data to another php form, that processes the request and sends
> the data to a sql database and generates an email that a request has come
> in.

So you'll be requesting the user to submit it twice? That's complicating
things unnecessarily. Once you have validated, just insert them into the
database right away. You can do that by including the processing page if
the fields check okay.

Like this:

if($_POST['submit']){

if(!empty($_POST['field'])){

// Here you include the processing script
include('some.php');
exit();

}

}

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

 

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

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