Re: [PHP] Variable quantity chooser.

2001-02-08 Thread David VanHorn
I'm sure I can help you, but I'm not able to follow your terminology. What's a "quantity chooser" and what's a "slider"? Are you referring to select boxes? I'm not trying to be rude, I just don't understand what you're referring to. I'm confident you can accomplish what you want using a

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread Steve Werby
"David VanHorn" [EMAIL PROTECTED] wrote: Sorry, I've been away from this for a while. Let me peel back a bit. When I generate the form, I pull up from the db, the quantity on hand, and the quantity already committed to orders. So: $max=$quantity-$commit is the maximum number I can allow

[PHP] Variable quantity chooser.

2001-02-07 Thread David VanHorn
Is there a way, using PHP, to generate a quantity chooser that maxes out at the quantity on hand? IOW, I have $quantity from the database, for a given line item, and I'd like to have a slider that lets you run up to, but not over, the quantity on hand. This might be more of an HTML

Re: [PHP] Variable quantity chooser.

2001-02-07 Thread Steve Werby
"David VanHorn" [EMAIL PROTECTED] wrote: Is there a way, using PHP, to generate a quantity chooser that maxes out at the quantity on hand? IOW, I have $quantity from the database, for a given line item, and I'd like to have a slider that lets you run up to, but not over, the quantity on

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Philip Olson
hi again james, btw, consider doing this : if (empty($submit)) { or if (!empty($submit)) { as it doesn't run into such problems. or use isset although i tend to almost always use empty, i LOVE empty() !!! each have their uses : http://www.php.net/manual/en/function.empty.php

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Teodor Cimpoesu
James Smith wrote: Alright, when i was programming with PHP3, I would use if statements like this: if(!$submit) { // display form } else { // display signup complete } to make multiple pages. Or I would do this: if($action == "signup") { if(!$submit) { //display

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Richard Lynch
://chatmusic.com/volunteer.htm - Original Message - From: James Smith [EMAIL PROTECTED] Newsgroups: php.general Sent: Tuesday, January 30, 2001 1:54 AM Subject: [PHP] Variable Problem when UPGRADING... Alright, when i was programming with PHP3, I would use if statements like this: if(!$submit

[PHP] Variable Problem when UPGRADING...

2001-01-29 Thread James Smith
Alright, when i was programming with PHP3, I would use if statements like this: if(!$submit) { // display form } else { // display signup complete } to make multiple pages. Or I would do this: if($action == "signup") { if(!$submit) { //display form } else { // display

Re: [PHP] Variable Problem when UPGRADING...

2001-01-29 Thread Philip Olson
this has to do with error reporting, using the function : http://www.php.net/manual/en/function.error-reporting.php definition of types : http://www.php.net/manual/en/phpdevel-errors.php you may have E_ALL or E_NOTICE on within php.ini philip olson http://www.cornado.com/ On Mon, 29 Jan

Re: [PHP] variable question

2001-01-19 Thread Joe Stump
Put them in an array? PHP allows for variable variables, but I'm not sure they work with classes. This works: $foo0 = 'a'; $foo1 = 'b'; $foo2 = 'c'; $foo3 = 'd'; $foo4 = 'e'; for($i = 0 ; $i 5 ; ++$i) { $var = 'foo'.$i; echo $$var; } Try it with an object... --Joe On Fri,

Re: [PHP] variable question

2001-01-19 Thread Chris Lee
thats right you could do that, but it sucks. (IMHO) $test-s0 $test-s1 $test-s2 for($c = 0; $c 3; $c++) { $name = "s$c"; echo $test-$name; } but this is better, more modular. $test-s[0] $test-s[1] $test-s[2] foreach($test-s as $pos = $val) echo $val; with the second example you

[PHP] Variable Scope

2001-01-18 Thread Karl J. Stubsjoen
I'm a bit troubled with the fact that variables declared at the top of your script are not then global to functions within that script. That in order to see that variable within a function you'd have to declare it as global in the function (understanding that the variable could have been set at

Re: [PHP] Variable Scope

2001-01-18 Thread Philip Olson
A nice explanation, via the mind of Lars Torben Wilson, exists here : http://marc.theaimsgroup.com/?l=php-generalm=97717398101040w=2 Also, you may want to check out : http://www.php.net/manual/en/language.constants.php http://www.php.net/manual/en/function.define.php Philip On

Re: [PHP] Variable Scope

2001-01-18 Thread Philip Olson
How about allowing for metaPasses within the castle? Am sure this topic came up, what's the conclusion? Philip On Thu, 18 Jan 2001, Rasmus Lerdorf wrote: I'm a bit troubled with the fact that variables declared at the top of your script are not then global to functions within that

Re: [PHP] Variable Scope

2001-01-18 Thread Michael Kimsal
I find the VB way (or VBScript anyway) of doing functions backwards. My recollection is that if I call a function blah... x = blahfunction('cow') 'blahfunction' itself has to be defined *in* the function to get the value back. I can't even think of a good example, it's so foreign to me and I

Re: [PHP] variable size limit?

2001-01-15 Thread Andrew Threlfall
I'm generating a page of HTML by reading an entire page of HTML source into a variable, and then doing various functions and str_replace on the variable. However when I finialy write this out to a file the variable containing the HTML source is truncated, at about 5800-ish bytes. Is

[PHP] variable tracking overview

2001-01-14 Thread Larry Jaques
Could someone give/sell me a clue as to variable tracking and/or cookie usage over multiple form pages for multiple users? Environment: website Number of variables: 390 or so. I have 4 pages of forms, 4 result pages, and want to email all the results. I put up one page of forms, they input, it

<    4   5   6   7   8   9