Hi i'm new here and with php and I want to ask for some help regarding my order form.

Here is my existing code.
[img]http://i52.tinypic.com/25k4wbc.jpg[/img]

Basically what it does in the form is you fill the item(text field) with the number of orders you want (1,2,3 etc.)
What I wanted to do is to have the "filled up" orders sent to me and not everything. So for example
the customer only filled the text field for food1, then its the only order that will be sent in my email.

Any help or suggestions will be highly appreciated. I'm also open if you know a better code than mine. Thanks!

So whats the problem???The code is fine.
What do you want in that???

Hi thanks for your reply. Yes there's no error in the code. I just want to revised it in a way that only those ordered items are the only ones that will appear in the email and not the whole items. Because right now the email looks something like this when someone orders food1

_____________

Name
Tel
Address

Orders:

food1 1
food2
_____________

I want it to appear that only food1 are on the email since food2 wasnt ordered. I actually have 70+ food in my order form, thats why I only want those ordered items to be email and not everything.

Member Avatar for diafol

Post your code here inside [ CODE ] tags as opposed to leaving an image url.

only choose the ones in the loop that have a value > 0.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.