Re: [PHP] Register_globals = off-compliant form class?

2002-11-16 Thread BigDog
try using pear... On Sat, 2002-11-16 at 22:53, Leif K-Brooks wrote: > I'm looking for a good class for forms that will work with > register_globals off. I was planning to modify Manuel Lemos's class, > but it turned out to be too big of a task. Any ideas? > > -- > The above message is encr

[PHP] Register_globals = off-compliant form class?

2002-11-16 Thread Leif K-Brooks
I'm looking for a good class for forms that will work with register_globals off. I was planning to modify Manuel Lemos's class, but it turned out to be too big of a task. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pr

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 03:41, Marek Kilimajer wrote: > Even if the method is post, you can have get variables, if the form has > action="script.php?get_var=value" Yes but I don't (need to) define my forms like that so I don't really care :-) -- Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Marek Kilimajer
Even if the method is post, you can have get variables, if the form has action="script.php?get_var=value" Jason Wong wrote: On Wednesday 13 November 2002 23:57, Leif K-Brooks wrote: I am planning to use Manuel Lemos's form class for a web site I am working on. However, I need to have registe

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
On Wednesday 13 November 2002 23:57, Leif K-Brooks wrote: > I am planning to use Manuel Lemos's form class for a web site I am > working on. However, I need to have register_globals set to off. I was > planning to rewrite the portions of the class that access submitted form > values directly to u

[PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Leif K-Brooks
I am planning to use Manuel Lemos's form class for a web site I am working on. However, I need to have register_globals set to off. I was planning to rewrite the portions of the class that access submitted form values directly to use the suberglobal arrays. When I started, though, I saw how

Re: [PHP] register_globals off issues

2002-11-12 Thread Ernest E Vogelsinger
At 21:05 12.11.2002, Mark Spohr said: [snip] >I'm trying to convert this to use $_POST() as such: > > if (@$_POST['form'] == "yes") >{ >unset($_POST['form']); >} > >However, this does not work. It appears that you can't unset the >$_POST['form'] array eleme

[PHP] register_globals off issues

2002-11-12 Thread Mark Spohr
I'm very new to PHP/mySQL and am working through the "PHP and mySQL for Dummies" examples. Unfortunately, these were all written with register_globals on and the system I'm using has register_globals off. I'm having trouble converting the examples to use the $_POST() expression. Specifically, t

[PHP] register_globals = Off

2002-09-06 Thread Holzner Roland
Hi there In my shop a had this code to add a product to the shoppingcart: session_start(); session_register("cart"); if($action == "addtocart") { $cart[] = "$id,$amount"; } To view the cart i had to explode the session_variable $cart and get more data from the database. session_sta

Re: [PHP] register_globals off or on, why on

2002-08-25 Thread Rasmus Lerdorf
> I'm working on a site where I'm using geeklog > http://geeklog.sourceforge.net/ > > It has the requirement that > > > "Geeklog needs the register_globals variable turned on in order to work. > > Since PHP 4.2.0, the default for register_globals is "off". To fix it, > > simply add the following l

[PHP] register_globals off or on, why on

2002-08-25 Thread Peter J. Schoenster
Hi, I'm working on a site where I'm using geeklog http://geeklog.sourceforge.net/ It has the requirement that > "Geeklog needs the register_globals variable turned on in order to work. > Since PHP 4.2.0, the default for register_globals is "off". To fix it, > simply add the following line to

Re: [PHP] register_globals=Off Question

2002-04-28 Thread Steve Buehler
Looks like you forgot your ticks ' around the PHP_SELF. If I am correct, it should be $_SERVER['PHP_SELF']. Either way, you might want to try this. Somebody else posted it before and I have been using it so that no matter what version of PHP my program runs on, it should work. if (isset($_SER

Re: [PHP] register_globals=Off Question

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Kirk Babb wrote: > How do I use $PHP_SELF with register_globals off? I looked up the > documentation on php.net but haven't gotten this line of code to work: > > action='' miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] register_globals=Off Question

2002-04-28 Thread John Holmes
IL PROTECTED]] > Sent: Sunday, April 28, 2002 3:58 PM > To: [EMAIL PROTECTED] > Subject: [PHP] register_globals=Off Question > > How do I use $PHP_SELF with register_globals off? I looked up the > documentation on php.net but haven't gotten this line of code to work: > >

[PHP] register_globals=Off Question

2002-04-28 Thread Kirk Babb
How do I use $PHP_SELF with register_globals off? I looked up the documentation on php.net but haven't gotten this line of code to work: I get this error instead: [28-Apr-2002 16:33:31] PHP Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in - on line 140 wha