[PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Tristan Gutsche
Hello,

I am having problems generating an array based on data passed from a form.
The form has a series of fields with the same name math. When submited if
i have register_globals=on i have no problems calling a $math variable and
it spits out all the values assigned to math, however with
register_globals=off only the last value passed in the HTTP string is being
returned.

Any suggestions welcome.

Regards
Tristan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
Hello im hoping someone might have an insight into this one im getting an
odd error when I use a not condition in an if statement

The code is as follows:
if !(isset($_REQUEST[license]))
{
  $license = off;
}

The error I am receiving is:

Parse error: parse error, unexpected '!', expecting '(' in
c:\inetpub\wwwroot\php\car.php on line 9

To avoid the error im simply using a script that doesnt use the ! mark but
the fact that using an ! in this position is occuring is worrying.. Has
anyone else encountered this?

Regards
Tristan Gutsche



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
Danke looks like its a simple case where the reference book had a Typo in it
putting the ! on the outside of the bracket.

Thanx for your help.

Regards
Tristan

Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Tristan Gutsche wrote:
 | Hello im hoping someone might have an insight into this one im getting
an
 | odd error when I use a not condition in an if statement
 |
 | The code is as follows:
 | if !(isset($_REQUEST[license]))
 | {
 |   $license = off;
 | }
 |
 | The error I am receiving is:
 |
 | Parse error: parse error, unexpected '!', expecting '(' in
 | c:\inetpub\wwwroot\php\car.php on line 9
 |
 | To avoid the error im simply using a script that doesnt use the ! mark
but
 | the fact that using an ! in this position is occuring is worrying.. Has
 | anyone else encountered this?

 Do

 if(!isset($_REQUEST[license]))


 - --
 **
 *  ____  _   *
 *  ___/ /__ ___ / /_(_)__  ___ __ __ ___  __ _   *
 * / _  / -_)_-/ __/ / _ \/ -_) // // __/ _ \/  ' \  *
 * \_,_/\__/___/\__/_/_//_/\__/\_, (_)__/\___/_/_/_/  *
 *(___/ [EMAIL PROTECTED] *
 **
 BOFH Excuse #444:
 overflow error in /dev/null

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.3 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFAC5IHoAq8t3CabwcRAqKoAJ0RfFIBJJnWREgY9PUViRj8wlrcmwCgpN8d
 AZdz70SMYVJnNd9/C/o/KFQ=
 =b7NS
 -END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php