You are here: Re: PHP beginner needs a little help « PHP Language « IT news, forums, messages
Re: PHP beginner needs a little help

Posted by Olaf Schinkel on 12/23/07 23:28

William Colls schrieb:
>
> I am trying to build a script which wiil receive some user input, and
> submit the information via POST to a second procedure, which does some
> validations. If the validations fail, the original procedure is
> recalled, but this time the user should see an error message. The
> following fragment illustrates:
>
> <html>
> <head>
> <title>Client Maintenance</title>
> </head>
> <body>
> <p><b>Add/Update a Client</b></p>
>
> <form action="clientmaint.php" method="post">
>
> <?php
> if(isset($_POST['stts']))
> {
> if($_POST['stts'] == "miss")
> {
> print("<p>You MUST provide at least a <b>telephone number</b><br>or
> a <b>surname</b></p>)";
> }
> }
> ?>
> <SNIPPED SOME STUFF WHICH WOKS FINE>
> </form>
> </body>
> </html>
>
> What is actually happening is that everything from the "You" onward is
> being displayed by the client, on the first pass. So I'm getting on the
> client:
>
> Add/Update a Client
>
> You MUST provide at least a telephone number
> or a surname)"; } } ?>
>
> on the first pass, when the $_POST{'stts'] variable should not be set.
>
> I am sure this is a really simple problem for an expert. If any one can
> suggest how to get this to behave, I will be truely greatful, even unto
> half my kingdom (which if you really care amounts to about $0.50).
>
> Thanks all.
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com
You really posted the original Code?
> You MUST provide at least a telephone number
> or a surname)"; } } ?>
This looks like some -> " oder ' <- Errors, or something.
Exactly this: } } ?> is wondering me.


Best
Olaf

 

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

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