Click to See Complete Forum and Search --> : Shopping Basket


vikki
04-24-2007, 07:06 PM
Hello. My School class has started a new project building a web site. I have been given the task of building the shopping basket. When i took this on I thought it looked simple. My best attempt at javascript is being able to add 2 numbers together. (and that took me 2 days) 2 + 2 is 22 it kept saying..but I got it in the end. what i would really like is some advice on where to start.

we have been told that we must use arrays (thats a list I think)

Our teacher told us to use the WWW for any help so I thought why not..

Thank You

Vikki

Natdrip
04-24-2007, 07:13 PM
what do you mean by a shopping basket :confused:
what is it you want to do exactly... if you please :D

vikki
04-24-2007, 07:20 PM
Sorry Shopping Cart in the UK we call it a basket..

we are going to have a site that sells 8 items. so someone can go on and buy as many items as they like. We want it so the person can then enter there name and class..and age they must be over 14. (to stop the young ones messing about) The site will only be accessible from our school.

Natdrip
04-25-2007, 11:49 AM
most shopping carts require you to use a server side language with a database.
javascript can move around variables on the client side.
a server side language ASP, PHP, JSP, CGI etc. is for heavy processing and database connection. This is important to know.


you will need a
<form>
some description: <input type="text" name="item1" id="item1" value="">
<input type="submit">
</form>
past this in the <body> tag on your HTML doc

this should get you started: