paulinnorway
12-01-2006, 07:10 PM
Hi,
I'm starting to learn PHP so I'm still finding out what PHP can and cannot do. I don't mind doing the learning by myself, but it would be a nuisance if I spent ages learning PHP only to realise that I should have been using a different language!
It would be great if someone could tell me if the following is possible in PHP:
Here's the example in it's most basic format.....
I want the client to enter in a product number and click a "Get Price" button. I then want the product number to be sent to the server where a "get_product_price()" function (made by me) will use this product number in a calculation to find the price of that product. The result (ie. the price of the product) should then be sent back to the client.
It should look something like this:
Welcome to our shop....blah, blah....
To find the price of a product, enter the product number in the box below and click the "Get Price" button.
---------
| 12345 | <------ Client enters product number in this text box
---------
-----------
| Get Price | <------ Client clicks this button
-----------
This product costs:
---------
| $1,345 | <-------PHP returns the price to the client
---------
Is this possible using only PHP?
Do I need just one PHP file or several?
I'm a novice at programming and I'd really appreciate someone pointing me in the right direction.
Thanks:thumbsup:
I'm starting to learn PHP so I'm still finding out what PHP can and cannot do. I don't mind doing the learning by myself, but it would be a nuisance if I spent ages learning PHP only to realise that I should have been using a different language!
It would be great if someone could tell me if the following is possible in PHP:
Here's the example in it's most basic format.....
I want the client to enter in a product number and click a "Get Price" button. I then want the product number to be sent to the server where a "get_product_price()" function (made by me) will use this product number in a calculation to find the price of that product. The result (ie. the price of the product) should then be sent back to the client.
It should look something like this:
Welcome to our shop....blah, blah....
To find the price of a product, enter the product number in the box below and click the "Get Price" button.
---------
| 12345 | <------ Client enters product number in this text box
---------
-----------
| Get Price | <------ Client clicks this button
-----------
This product costs:
---------
| $1,345 | <-------PHP returns the price to the client
---------
Is this possible using only PHP?
Do I need just one PHP file or several?
I'm a novice at programming and I'd really appreciate someone pointing me in the right direction.
Thanks:thumbsup: