Click to See Complete Forum and Search --> : HTML code for a button


Gemini32
07-23-2003, 03:29 PM
Hi Everyone

I'm new to this code writing of HTML and I'm designing a form and I'm almost there but this problem has arise and I've done seaches, read and not luck..So I turned to the experts of this board.

My Question is:

I have an add button at the end of each row of my 4 column (31 rows). I can link my add button no problme but I want to add whats in the other three columns, ( this will also go for the other 31 rows as well)

I'm not sure if this makes since but I'm trying to design a shopping cart for my web site. You click the add button and will put the part #, the description, price of the product. I haven't figure out how to add the sales tax to the amount and then add it up or click on a button to continue on shopping.

I'd be very thankful of any assistance for this problem of mine (I'm on the verge of just finding a wall and start the head banging....hahhahahahah) Been working on this now for months...and I'm stumped, tried the seaches on this board,HTML goodies site, Google seach, reading books here. No luck... I send thank you's ahead of any help from this absolutely postively marvolous and genius of this board

:) Gemini32:)

This is what I have of the code for the shopping cart listed below: ( didn't include all 31 rows)

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Parts</title>
<style>

</style>
<base target="_top">
</head>

<body>

</td>
<td align="right"><p>&nbsp;</td> </p>

<p align="center"><font face="Arial" size="5">Parts</font></p>

<p align="center">&nbsp;</p>

<p align="left">&nbsp;</p>

<p align="right"><font size="4"><b>&nbsp;</b></font><br>
</p>

<table cellpadding="0" cellspacing="4" width="282" align="left">
<tr>
<td align="center" width="613">
<table style="font-size: 12pt; border-collapse: collapse" bgcolor="#0080FF" border="1" cellspacing="0" width="424" bordercolorlight="#0080FF" bordercolor="#0080FF" cellpadding="0" bordercolordark="#0080FF" height="716">
<tr>
<td>&nbsp;</td>
<th bgcolor="#0080FF" colspan="4" bordercolor="#0080FF" bordercolorlight="#0080FF" bordercolordark="#0080FF" width="689" height="19">&nbsp;</th>
</tr>
<tr style="font-size: 10pt; font-weight: bold">
<td nowrap bgcolor="#DDDDDD" width="117" height="15">&nbsp;</td>
<td align="center" nowrap bgcolor="#DDDDDD" width="465" height="15">
<p align="left">&nbsp;</td>
<td align="center" nowrap bgcolor="#DDDDDD" colspan="2" width="179" height="15">&nbsp;</td>
</tr>
<tr style="font-size: 12pt" title="Out of Stock">
<td nowrap align="left" bgcolor="#FFFFFF" width="117" height="19">
<p align="center">Part #</td>
<td align="left" bgcolor="#FFFFFF" width="465" height="19">
<p align="center">Description</td>
<td width="121" nowrap align="right" bgcolor="#FFFFFF" height="19">
<p align="center">Price (Canadian)</td>
<td nowrap align="center" bgcolor="#FFFFFF" width="126" height="19">
Add To List</td>
</tr>
<tr>
<td nowrap align="center" bgcolor="#DFEFFF" width="117" height="19">
4567</a></td>
<td nowrap align="left" bgcolor="#DFEFFF" width="117" height="19">
CPU</td>
<td width="121" nowrap align="center" bgcolor="#DFEFFF" height="19">
67.90</td>
<td nowrap align="center" bgcolor="#DFEFFF" width="126" height="19" class="AddItem">
<a target="_top" href="shoplist.htm">
<img border="0" src="add.gif" alt="Add Item" width="37" height="15"></a></a></a></td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>

David Harrison
07-23-2003, 03:59 PM
I wasn't quite able to decipher what you meant in the second paragraph of "My Question is:", so I've uploaded an updated example of something that I made earlier today for someone else. Let me know if this is close to what you want.

Gemini32
07-23-2003, 04:39 PM
Hi Lavalamp


Thank you for the calculate code that was great and I'll be using it if you don't mind.

The code itself is for a shopping cart. I can link the the add button to the shoplist.htm but not have the infomation from the product come on to the shopping cart page . Meaning the Part #, Qty amount, description, and price.

Gemini32

David Harrison
07-23-2003, 04:49 PM
Feel free to use the code, I don't mind, javascript is for everyone.
If you want to pass values to another page then you can use this script that Dave Clark gave me when I had a similar problem a while ago.

It's a little over complicated, so if you get stuck just let me know and I'll help you modify it to suit your needs.

Gemini32
07-23-2003, 04:53 PM
Hi Lavalamp

thank you so much I've just downloaded now and going to check it out will be back if I have problems I'm hoping I wont and don't have to bother you again...Many thanks my friend and have a great an wonderful day..



:) Gemini32:)

David Harrison
07-23-2003, 05:02 PM
You're welcome, it's always nice to help someone out, and it was no bother. :)

Gemini32
07-24-2003, 05:11 PM
Hi Everyone

I have a table that has 5 columns and 31 rows.

My Column headings are as follows

column 1 = Qty (text box to enter amount)
column 2 = Part # ( # we give our product)
column 3 = Description ( is the product)
column 4 = Price ( amount of product)
column 5 = add gif ( hyperlinked to a shopping list)


Now I have the ADD.gif as a hyperlink to my shopping cart
but no information follows off the row or rows.

I've never built a shopping cart before or worked with HTML
I'm learning but not quick enough to not ask questions...hhahaha

My question is how do I get the information to go from my part order page to a shopping cart?

If you need to see what I have so far and could help out in the code writing department that would be fablous....


I found a virtual cart in HTML goodies site but I haven't figured out how it all goes together :confused: to put into my web site.

Please any help would be very much appreciated...








:) Gemini32:)

David Harrison
07-24-2003, 05:16 PM
When I needed to transfer data from one page to another, I asked and Dave_Clark provided me with this (see attachment), I'm sure if he were here now he'd provide you with the same thing.

Gemini32
07-24-2003, 06:10 PM
HI Lavalamp

I got the zip, where do I place the information that I see in send from,next,last into my page that I've been descriping...Thank you for any help you can proved...

P.S. I'm playing with as I wait to try and figure it out not sure how I'll do though...hahahhahah


:) Gemini32:)

David Harrison
07-24-2003, 06:19 PM
I'll have to get back to you tomorrow because I have to go right now.

Gemini32
07-24-2003, 06:32 PM
Originally posted by lavalamp
I'll have to get back to you tomorrow because I have to go right now.


ok..thank you

David Harrison
07-26-2003, 01:19 PM
Sorry it took so long but this is my first shopping cart, (javascript is probably not the most secure way of making one by the way), and it is quite a complicated script. If you're not sure how to do something, just ask and I'll try to explain.

PeOfEo
07-26-2003, 08:16 PM
lava lamp, how would java script be more secure then a server side language... you say its probably the most secure way, I want to here why you think so.

Da Warriah
07-26-2003, 08:43 PM
Originally posted by lavalamp
(javascript is probably not the most secure way of making one by the way)

be sure to read each and every word, analyzing each contextual meaning of the word, before formulating a response and drawing conclusions...

(i dunno, funniest thing i could say for this:rolleyes: )

PeOfEo
07-26-2003, 08:54 PM
oops lol, I was thinken that java script is not exactly air tight, lol I missed a woord woopsy.

David Harrison
07-27-2003, 04:41 PM
Easy mistake to make, all is forgiven. :)