View Single Post
Old 02-24-2007, 11:59 PM   #11 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
Quote:
1) calculated price based on results
As you can see, my database layout dosn't include any price assignement to the item at hand, but that wouldn't be too complicated.
Quote:
2) an input text for their email address
That can be added very easily
Quote:
3) and a checkbox choice between delivery options of mail or email.
Again, this is very easy to add...
Quote:
Does the Order page javascript need to be slightly changed or overhauled to accomadate a confirmation page that displays the checkboxed results?
If you look at the page-source you'll see, I had to make some changes to the checkAll() function, but it wasn't that problematic.
When adding the calculation of prices, I think it would be more complete to just use the id of the item instead of name, as the value to the checkbox. This would require more work in the confirmation page, but it would provide a more secure solution towards false/positive occurencies.

The reason I made it, was to see if it was fairly easy to combine the javascript part from yours with the ease of dynamic PHP pages formed from some database gathered info, as it turned out, it wasn't that difficult.
Look at it, as a proof of concept.

Now the next step will be for you to make it, with guidence from me and others here, like DjMaze, sde, tekno, etc. As it is always best to learn along the way, instead of ripping some code, which you dont fully understand. Creating HTML pages like this, is alog the lines of thinking HTML in 3d
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote