473,326 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

PHP order form and calculations

164 100+
Hey all you PHP gods and goddesses, I was hoping for a pointer for a tutorial, perhaps some teachings on creating an order form. I am not asking for a complete explanation by anyone here but was hoping you may be able to point me towards a tutorial online somewhere.

I found this... which is pretty much cut and try for what I need.
http://www.developingwebs.net/html/formcalculationsphp.php
Only the example at the bottom of the page doesn't calculate anything. I starting to read through it now but know how good it will be.

My end goal is to have a food menu with a few sections of different food items. I need to have a quantity box, and then a submit for total button that will do just that.

I am decent at picking things up so any pointers, or links to something that is along those lines would be amazing. Generally I would search a heck of a lot longer but this was kind of last minute and the issue is pressed for time!

so thank you very much in advance!
Feb 29 '08 #1
8 6455
ronverdonk
4,258 Expert 4TB
Like this one?
PHP Tutorial: Order Form

Ronald
Feb 29 '08 #2
mbatestblrock
164 100+
Like this one?
PHP Tutorial: Order Form

Ronald

Sorry I guess I should have specified.. I need the actual calculations to take place.

2 cakes at $5.00 each
5 muffins at $2.00 Each


---------------------------------------
Customers Oder Page:

You ordered

2 Cakes
5 Muffins

Your total is $20.00 Thank you.

________________________________

Something along those lines.. I ran through that link I gave earlier and I am getting the output as theirs.. They have variable holding prices in the script, it just doesnt calculate it
???

Thank you for the quick response though!
Feb 29 '08 #3
Markus
6,050 Expert 4TB
Have a look at php operators.

[php]
$_x = 1;
$_y = 3;
echo $_x + $_y;
[/php]
Feb 29 '08 #4
ronverdonk
4,258 Expert 4TB
Sorry I guess I should have specified.. I need the actual calculations to take place.

2 cakes at $5.00 each
5 muffins at $2.00 Each


---------------------------------------
Customers Oder Page:

You ordered

2 Cakes
5 Muffins

Your total is $20.00 Thank you.

________________________________

Something along those lines.. I ran through that link I gave earlier and I am getting the output as theirs.. They have variable holding prices in the script, it just doesnt calculate it
???

Thank you for the quick response though!
So what do you expect us to do? Teach you how to program calculations? Make you an order form? You'll have to start programming yourself. When you run into trouble with that, show us and we will try to help you.

Ronald
Mar 1 '08 #5
mbatestblrock
164 100+
So what do you expect us to do? Teach you how to program calculations? Make you an order form? You'll have to start programming yourself. When you run into trouble with that, show us and we will try to help you.

Ronald
I am not sure if you read my original post where I said exactly this..

"I am not asking for a complete explanation by anyone here but was hoping you may be able to point me towards a tutorial online somewhere."

and then this..
"Generally I would search a heck of a lot longer but this was kind of last minute and the issue is pressed for time!"

I am not trying to sound to sound like some idiot who mooches off the forums. After sifting through the link I originally posted, and the one that you and markusn00b posted I got a generalized idea on how to perform what I need done.

So thanks a lot guys.
Mar 1 '08 #6
Markus
6,050 Expert 4TB
I am not sure if you read my original post where I said exactly this..

"I am not asking for a complete explanation by anyone here but was hoping you may be able to point me towards a tutorial online somewhere."

and then this..
"Generally I would search a heck of a lot longer but this was kind of last minute and the issue is pressed for time!"

I am not trying to sound to sound like some idiot who mooches off the forums. After sifting through the link I originally posted, and the one that you and markusn00b posted I got a generalized idea on how to perform what I need done.

So thanks a lot guys.
He wasn't grilling you :)
you're welcome
Mar 1 '08 #7
mbatestblrock
164 100+
He wasn't grilling you :)
you're welcome
yeah he probably wasn't. I just wanted to make it clear I was not expecting such things at all. The script is working NICE by the way...
Mar 1 '08 #8
Markus
6,050 Expert 4TB
yeah he probably wasn't. I just wanted to make it clear I was not expecting such things at all. The script is working NICE by the way...
Good luck with your project!

Post back whenever!
Mar 1 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tom Page | last post by:
Hello all I have a question that may or may not be simple - I need my three dimensional array to be of the form: array where jj and kk range from 0 to some constant fixed at the very...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
0
by: Erwin | last post by:
I am writing VBA code in a report code module. I need to make calculations that display on the report based on information on a query. What is the syntax for that? The logic is below. if...
11
by: ian.davies52 | last post by:
Is there anything I can do about the apparent limit on the number of textboxes that have calculations as their control source on a form or report in ms-access? I have a query that pulls together...
8
by: kaosyeti | last post by:
i have a (hopefully) small problem. i have created a system where a user enters customer information into a table through a form. this table has no primary key. there are 9 fields on the form to...
6
by: Sanjay | last post by:
Hi, Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and...
4
by: papawilley | last post by:
How do I right JavaScript, quantity calculations for an existing online order form. I am trying to make an order form that will have a open price, added to a set price selected from a drop down box,...
7
by: Daniel Jeffrey | last post by:
Hello, I am coming from Delphi and when I have a method in the inherited class, I call Inherited to call the base class method. This is handy cause you can control where and when these things...
4
by: Truck Estevez | last post by:
So I have this form I created in PHP, to get a general estimate of the cost of my product... right now i have it so whatever you select, be it in a dropdown menu or checkbox, your total is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.