Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 09-28-2002, 07:25 PM   #1 (permalink)
crystal214
Registered User
 
Join Date: Sep 2002
Posts: 2
crystal214 is on a distinguished road
Question Order Forms?

How do i create a multiple product order form?
__________________
crystal214 is offline   Reply With Quote
Old 09-28-2002, 09:40 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
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
Old 09-28-2002, 09:51 PM   #3 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
milano

Code:
<form method=post action=order.html>
you can't post to a "html" file, it can't process it, if you can **only** use html and javascript use "get" instead and you can probably get the info with "document.location" or whatever it is, but post wont work .
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Old 09-29-2002, 08:44 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
doh! i didn't think about that.. i've never used anything but php or asp with forms
__________________
sde is offline   Reply With Quote
Old 09-29-2002, 10:54 AM   #5 (permalink)
crystal214
Registered User
 
Join Date: Sep 2002
Posts: 2
crystal214 is on a distinguished road
OK, so basicly html is out unless i wana make it hard on myself. So how do i do a shopping cart form with php or asp? I am looking to put products on a website, allow the clients to select products and quantiy, and beable to edit the shoping cart at the end.
~Crystal
__________________
crystal214 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
someone please help kickerman97 Java 3 10-19-2004 03:19 PM
Using ORDER BY in a select statement Epsilon PHP 3 08-22-2004 02:28 PM
Search -That Can Match Out Of Order Items JBurke All Other Coding Languages 11 09-25-2003 02:09 PM
What would I need to know in order to ... ntws01 Standard C, C++ 2 06-28-2003 05:34 PM


All times are GMT -8. The time now is 08:04 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle