p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: chapter 2 page 121

Message #1 by "Ciaran Weldon" <c@v...> on Sat, 23 Feb 2002 07:49:51 -0000
I have copied the code for the  Decision making example into my own example

but when I choose and age 18 or over with credit card check no message is

returned, but a message is returned for any other example.


the php code is thus:

record buying


if ($age>18 AND $card=="on") echo ("u can shop.");

if ($age<17 OR $card==" ") echo ("yr too honest. too young to buy");


example on-line http://www.prevexxed.f2s.com/testing/records.html

where am i going wrong?



  Return to Index