RE: [PHP] Shopping with variables

2001-05-16 Thread scott [gts]
an'] of $items[$current]['type']"; > -Original Message- > From: John Monfort [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 9:02 AM > To: Ralph Guzman > Cc: Tarrant Costelloe; [EMAIL PROTECTED] > Subject: RE: [PHP] Shopping with variable

RE: [PHP] Shopping with variables

2001-05-16 Thread John Monfort
ked to purchase $item_qty $item_name"; > > Keep in mind that this is not the most efficient method since it will > require that you continue adding if(isset($variable)) statements, if you > ever decide to add more item types. > > > -Original Message- > From: Tar

RE: [PHP] Shopping with variables

2001-05-16 Thread Ralph Guzman
n mind that this is not the most efficient method since it will require that you continue adding if(isset($variable)) statements, if you ever decide to add more item types. -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:13 AM To:

[PHP] R: [PHP] Shopping with variables

2001-05-16 Thread Gabriele Biondo
> Thanks Gabriele :) Whilst waiting for your e-mail I figured out another > way...Thought I would show you it just in case you ever find the > need to use > this alternative: > >($dvd ? "DVD: $dvd ":''). > ($video ? "Video: $video ":''). > ($cd ? "CD's: $cd ":''). > "

Re: [PHP] Shopping with variables

2001-05-16 Thread Vitali Falileev
Hello Tarrant, Wednesday, May 16, 2001, 12:12:43 PM, you wrote: TC> ? TC> This prints out, "You have bought 16 - Thank you" for example, see the TC> problem? How do I get it to print the variable name not just it's value? Use -- Best regards, Vitalimailto:[EMAIL

[PHP] R: [PHP] Shopping with variables

2001-05-16 Thread Gabriele Biondo
> ?php print(" You have asked to purchase $dvd $video $cd 's - > Thank you") >? > > This prints out, "You have bought 16 - Thank you" for example, see the > problem? How do I get it to print the variable name not just it's value? Try with replacing your print with the following one: print("

[PHP] Shopping with variables

2001-05-16 Thread Tarrant Costelloe
I am currently just messing around with a basic shopping cart, but have stumbled onto a problem. Bascially there is three input boxes all DVD, VIDEO, CD and these are also variables. Once the user has said they wanted "15" cd's for example, the form then takes them onto the shop.php. Which say's