[PHP] code troble

2001-09-07 Thread Nikola Veber

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
titleExample 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] code troble

2001-09-07 Thread * RzE:

I just gave a very quick look... so maybe there are some things that
I've overlooked. But I hope this solves your problem...


 html
 head
 titleExample 2.01/title
 meta http-equiv=Content-Type content=text/html;
 charset=iso-8859-1
 /head
 body
 ?php

 if (emty(provera)) {pokazi();}

I'd use $ here :)
if (empty ($provera)) ...
   ^
   ^

 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

If I were you I'd close the input-tag :)
input type = text name = vrednost
  ^
  ^

 input type =hidden name = provera value = rezultati   

and again...
input type =hidden name = provera value = rezultati
  ^
  ^


 /form
 ?php
 }
 ?
 ?php
 function obrada() {

 global $ime;
 global $vrednost;

Did you check whether or not $ime and $vrednost are defined/set at
all? (isset ($ime) or !empty ($ime))

 if ($ime == Nikola  $vrednost == 100){
 echo Zdravo $ime br;
 echo Iznos na Vasem racunu je $vrednost dolara;
 } 
 ?
 /body
 /html

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] code troble

2001-09-07 Thread * RzE:

Well... I've already found something I overlooked. You call emty()
io empty(); see below...


  html
  head
  titleExample 2.01/title
  meta http-equiv=Content-Type content=text/html;
  charset=iso-8859-1
  /head
  body
  ?php
 
  if (emty(provera)) {pokazi();}
 ^^
 ^^
Here you forgot the 'p' in emPty()

 
 I'd use $ here :)
   if (empty ($provera)) ...
  ^
  ^
 
  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
 
 If I were you I'd close the input-tag :)
   input type = text name = vrednost
 ^
 ^
 
  input type =hidden name = provera value = rezultati   
 
 and again...
   input type =hidden name = provera value = rezultati
 ^
 ^
 
 
  /form
  ?php
  }
  ?
  ?php
  function obrada() {
 
  global $ime;
  global $vrednost;
 
 Did you check whether or not $ime and $vrednost are defined/set at
 all? (isset ($ime) or !empty ($ime))
 
  if ($ime == Nikola  $vrednost == 100){
  echo Zdravo $ime br;
  echo Iznos na Vasem racunu je $vrednost dolara;
  } 
  ?
  /body
  /html

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] code troble

2001-09-07 Thread _lallous

RZe
soundex(emty) = soundex(empty) maybe someday parser will consider that
;)

* RZe: [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Well... I've already found something I overlooked. You call emty()
 io empty(); see below...


   html
   head
   titleExample 2.01/title
   meta http-equiv=Content-Type content=text/html;
   charset=iso-8859-1
   /head
   body
   ?php
 
   if (emty(provera)) {pokazi();}
  ^^
  ^^
 Here you forgot the 'p' in emPty()

 
  I'd use $ here :)
  if (empty ($provera)) ...
 ^
 ^
 
   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
 
  If I were you I'd close the input-tag :)
  input type = text name = vrednost
^
^
 
   input type =hidden name = provera value = rezultati
 
  and again...
  input type =hidden name = provera value = rezultati
^
^
 
 
   /form
   ?php
   }
   ?
   ?php
   function obrada() {
 
   global $ime;
   global $vrednost;
 
  Did you check whether or not $ime and $vrednost are defined/set at
  all? (isset ($ime) or !empty ($ime))
 
   if ($ime == Nikola  $vrednost == 100){
   echo Zdravo $ime br;
   echo Iznos na Vasem racunu je $vrednost dolara;
   }
   ?
   /body
   /html

 --

 * RzE:


 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 -- Netherlands
 --
 -- http://www.datalink.nl
 -- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] code troble

2001-09-07 Thread Tom Carter

You also seem to be missing a closing }. please check all braces before
posting to a list...
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: php forum [EMAIL PROTECTED]
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
 titleExample 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]