Help with this php code, please?

Violent John

New member
Okay so I was bored and started up a php script. I'm particularly new to php so I need some help with this.

I have some variables set up

$zero = "You MUST select atleast 1 pizza!";
$count1 = $_POST['count'] * 12.00;
$count2 = $_POST['count'] * 14.00;
$count3 = $_POST['count'] * 18.50;

Now I want to be able to post on the page "Quantity". I've set up all the selections of pizza's correctly, but I don't know how to set up for example, "if number of pizza's is blank (not 0) give an error message, but if pizza has a number, post that number of pizza's and total price"

I've tried this numerous times, and I just can't figure it out.

10 points to the person who helps me out this this :)
 
Back
Top