Thread: Order Forms?
View Single Post
Old 09-28-2002, 09:40 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
hi crystal, welcome to codenewbie.

php, or any other server-side programming would be the best tool to determine exactly how many products are being ordered, .. but if you are just using html, you will have to make a form with a set number of products.

for example:
Code:
<form method=post action=order.html>
name:<input type=text name=name>
address:<input type=text name=address>
credit card: <input type=text name=credit_card>

first product:<input type=text name=product_1><br> 
second product:<input type=text name=product_2><br> 
third product:<input type=text name=product_3><br> 
forth product:<input type=text name=product_4><br> 
fifth product:<input type=text name=product_5>
<input type=submit>
</form>
typically, you would use a shopping cart for this sort of project which might put each product the user adds to their shopping cart into an array, .. then when the user checks out, it would automatically generate an invoice based on the specific products in their basket. if you are just using some type of system that simply emails the business owner with the order and client info, .. then just use something like the example above. .. and if this doesn't answer your questions .. please give us a more specific example and more information pertaining to your project.

thanks
sde is offline   Reply With Quote