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 Art on 05/08/07 11:58

Thanks Geoff, that worked.

Art
"Rami Elomaa" <rami.elomaa@gmail.com> wrote in message
news:f1jrb6$5a4$1@nyytiset.pp.htv.fi...
> 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация