Re: code troble

From: Date: Fri, 07 Sep 2001 13:25:09 +0000
Subject: Re: code troble
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66408@lists.php.net to get a copy of this message
You also seem to be missing a closing }..... please check all braces before posting to a list... ----- Original Message ----- From: "Nikola Veber" <veber@ptt.yu> To: "php forum" <php-general@lists.php.net> Sent: Friday, September 07, 2001 1:29 PM Subject: [PHP] code troble > Hi > I'm having trobles with this code. Can you take a look at it? > Parse error: parse error in C:/XITAMI/webpages/index.php on line 34 is the > error msg. > > thanx > > <html> > <head> > <title>Example 2.01</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"> > </head> > <body> > <?php > if (emty(provera)) {pokazi();} > else {obrada();} > ?> > <?php > function pokazi() { > global $PHP_SELF; > ?> > <form target = "<?php echo $PHP_SELF ?>;" METHOD = get> > <input type = "text" name = "ime"> > <input type = "text" name = "vrednost" > <input type ="hidden" name = "provera" value = "rezultati" > </form> > <?php > } > ?> > <?php > function obrada() { > global $ime; > global $vrednost; > if ($ime == "Nikola" && $vrednost == 100){ > echo "Zdravo $ime <br>"; > echo "Iznos na Vasem racunu je $vrednost dolara"; > } > ?> > </body> > </html> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#66408) next »