how to add this item to my cart..

how to add this item to my cart..and get the total....please reply if

Page 1 of 1

1 Replies - 2108 Views - Last Post: 16 October 2009 - 05:05 AM Rate Topic: -----

#1 troymogzz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 15-October 09

how to add this item to my cart..

Post icon  Posted 15 October 2009 - 11:08 PM

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Entertainment - Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_entertainment.css" type="text/css" />
<style type="text/css">
.style22 {
	border-width: 0px;
}
.style23 {
	text-align: center;
}
.style24 {
	color: #FF0000;
}
</style>
</head>
<body bgcolor="#14285f">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
<form id="Digital Camera" action="viewcart.php" method="POST">
  <tr bgcolor="02021e">
	<td colspan="4" rowspan="2" nowrap="nowrap">
	<img src="background/mm_entertainment_image.jpg" alt="Header image" width="400" height="140" border="0" /></td>
	<td width="360" nowrap="nowrap" colspan="3" id="logo" valign="bottom" style="height: 58px">
	<a href="http://home.php">
	<img class="style22" height="46" src="background/digicam.jpg" width="311" /></a></td>
	<td width="100%" style="height: 58px"></td>
  </tr>
  <tr bgcolor="02021E">
	<td height="57" nowrap="nowrap" colspan="3" id="tagline" valign="top">
	<a href="http://home.php">
	<img class="style22" height="46" src="background/website.jpg" width="231" /></a></td>
	<td width="100%">&nbsp;</td>
  </tr>
  <tr>
	<td colspan="8" bgcolor="#cc3300"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8" bgcolor="#cc3300"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8" class="style23">&nbsp;&nbsp;<img height="25" src="background/samsung1.jpg" width="110" /><br />
	   </td>
  </tr>
  <tr>
	<td width="155" valign="top" height="370">
	<table border="0" cellspacing="0" cellpadding="0" width="155" id="navigation">
		<tr>
		  <td width="155" height="40"><a href="homepage.php">
		  <img class="style22" height="46" src="background/home.jpg" width="95" /></a></td>
		</tr>
		<tr>
		  <td width="155" height="40"><a href="products.php">
		  <img class="style22" height="40" src="background/products1.jpg" width="111" /></a></td>
		</tr>
		<tr>
		  <td width="155" height="40"><a href="samsung.php">
		  <img class="style22" height="35" src="background/samsung.jpg" width="110" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="canon.php">
		   <img class="style22" height="35" src="background/canon.jpg" width="110" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="olympus.php">
		   <img class="style22" height="35" src="background/olympus.jpg" width="110" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="kodak.php">
		   <img class="style22" height="35" src="background/kodak.jpg" width="110" /></a></td>
		</tr>
	  </table></td>
	<td width="1" bgcolor="#445DA0"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	<td width="50"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
	<td width="304" colspan="2" valign="top">
	<div id="layer1" style="position: absolute; width: 642px; height: 422px; z-index: 1; left: 167px; top: 173px">
	<table border="0" cellspacing="0" cellpadding="2" width="639">
		<tr>
		  <td colspan="7" class="style4">&nbsp;</td>
		</tr>
		<tr>
		  <td width="22%" height="110">
		  <a href="samsung/samsung1.php">
		  <img src="samsung/smallsize/samsung1.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td width="22%" height="110">
		  <a href="samsung/samsung2.php">
		  <img src="samsung/smallsize/samsung2.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td height="110" style="width: 22%">
		  <a href="samsung/samsung3.php">
		  <img src="samsung/smallsize/samsung3.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td width="22%" height="110">
		  <a href="samsung/samsung4.php">
		  <img src="samsung/smallsize/samsung4.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		</tr>
		<tr>
		  <td class="detailText" valign="top" nowrap="nowrap">Samsung SL420<br />
		  Price: P9,552.00<br />
		<input name="Samsung1" type="checkbox" id="Agreement" value="Samsung SL420" style="height: 20px; width: 20px" />
		  <span class="style24">add to cart</span></td>
		  <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap">Samsung NV30<br />
		   Price: P4,224.00<br />
		<input name="Samsung2" type="checkbox" id="Agreement0" value="Samsung NV30" style="height: 20px; width: 20px" />
		   <span class="style24">add to cart</span></td>
		 <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap" style="width: 22%">Samsung NV24<br />
		   Price: P11,280.00<br />
		<input name="Samsung3" type="checkbox" id="Agreement1" value="Samsung NV24" style="height: 20px; width: 20px" />
		   <span class="style24">add to cart</span></td>
		 <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap">Samsung NV7<br />
		   Price: P13,680.00<br />
		<input name="Samsung4" type="checkbox" id="Agreement2" value="Samsung NV7" style="height: 20px; width: 20px" />
		   <span class="style24">add to cart</span></td>
		</tr>

		<tr>
		  <td colspan="7" class="style4">&nbsp;</td>
		</tr>
		<tr>
		  <td width="22%" height="110">
		  <a href="samsung/samsung5.php">
		  <img src="samsung/smallsize/samsung5.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td width="22%" height="110">
		  <a href="samsung/samsung6.php">
		  <img src="samsung/smallsize/samsung6.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td height="110" style="width: 22%">
		  <a href="samsung/samsung7.php">
		  <img src="samsung/smallsize/samsung7.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		  <td>&nbsp;</td>
		  <td width="22%" height="110">
		  <a href="samsung/samsung8.php">
		  <img src="samsung/smallsize/samsung8.jpg" alt="small product photo" width="125" height="125" border="0" /></a></td>
		</tr>
		<tr>
		  <td class="detailText" valign="top" nowrap="nowrap">Samsung HZ15W<br />
		  Price: P11,952.00<br />
		<input name="Samsung5" type="checkbox" id="Agreement3" value="Samsung HZ15W" style="height: 20px; width: 20px" />
		  <span class="style24">add to cart</span></td>
		  <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap">Samsung TL320<br />
		   Price: P14,352.00<br />
		<input name="Samsung6" type="checkbox" id="Agreement4" value="Samsung TL320" style="width: 20px" />
		   <span class="style24">add to cart</span></td>
		 <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap" style="width: 22%">Samsung SL310W <br />
		   Price: P9,648.00<br />
		<input name="Samsung7" type="checkbox" id="Agreement5" value="Samsung SL310W" style="height: 20px; width: 20px" />
		   <span class="style24">add to cart</span></td>
		 <td>&nbsp;</td>
		   <td class="detailText" valign="top" nowrap="nowrap">Samsung L73 <br />
		   Price: P4,800.00<br />
		<input name="Samsung8" type="checkbox" id="Agreement6" value="Samsung L73" style="height: 20px; width: 20px" />
		   <span class="style24">add to cart</span></td>
		</tr>

		<tr>
			<td colspan="7">
			<input type="submit" class="control" value="submit to cart" />&nbsp;</td>
		</tr>
	  </table>	  
	  </div>
	  </td>
	<td width="50"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
	<td width="200" valign="t<input type="submit" class="control" value="Submit" />op">&nbsp;</td>
	<td width="100%">&nbsp;</td>
  </tr>
  <tr>
	<td width="155">&nbsp;</td>
	<td width="1"></td>
	<td width="50">&nbsp;</td>
	<td style="width: 199px">&nbsp;</td>
	<td width="110">&nbsp;</td>
	<td width="50">&nbsp;</td>
	<td width="200">&nbsp;</td>
	<td width="100%">&nbsp;</td>
  </tr>
</table>
</body>
</html>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Entertainment - Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_entertainment.css" type="text/css" />
<style type="text/css">
.style22 {
	border-width: 0px;
}
.style23 {
	text-align: center;
}
</style>
</head>
<body bgcolor="#14285f">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  <tr bgcolor="02021e">
	<td colspan="4" rowspan="2" nowrap="nowrap">
	<img src="background/mm_entertainment_image.jpg" alt="Header image" width="400" height="140" border="0" /></td>
	<td width="360" nowrap="nowrap" colspan="3" id="logo" valign="bottom" style="height: 58px">
	<a href="http://home.php">
	<img class="style22" height="46" src="background/digicam.jpg" width="311" /></a></td>
	<td width="100%" style="height: 58px"></td>
  </tr>
  <tr bgcolor="02021E">
	<td height="57" nowrap="nowrap" colspan="3" id="tagline" valign="top">
	<a href="http://home.php">
	<img class="style22" height="46" src="background/website.jpg" width="231" /></a></td>
	<td width="100%">&nbsp;</td>
  </tr>
  <tr>
	<td colspan="8" bgcolor="#cc3300"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8" bgcolor="#cc3300"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
  </tr>

   <tr>
	<td colspan="8">&nbsp;<br />
	&nbsp;<br />	</td>
  </tr>
  <tr>
	<td width="155" valign="top" height="370">
	<table border="0" cellspacing="0" cellpadding="0" width="155" id="navigation">
		<tr>
		  <td width="155" height="40"><a href="homepage.php">
		  <img class="style22" height="46" src="background/home.jpg" width="95" /></a></td>
		</tr>
		<tr>
		  <td width="155" height="40"><a href="products.php">
		  <img class="style22" height="46" src="background/products.jpg" width="95" /></a></td>
		</tr>
		<tr>
		  <td width="155" height="40"><a href="viewcart.php">
		  <img class="style22" height="46" src="background/viewcart.jpg" width="109" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="photos.php">
		   <img class="style22" height="46" src="background/photos.jpg" width="95" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="aboutme.php">
		   <img class="style22" height="46" src="background/aboutme.jpg" width="95" /></a></td>
		</tr>
		<tr>
		   <td width="155" height="40"><a href="contact.php">
		   <img class="style22" height="46" src="background/contact.jpg" width="95" /></a></td>
		</tr>
	  </table></td>
	<td width="1" bgcolor="#445DA0"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	<td width="50"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
	<td colspan="2" valign="top">
	<table style="width: 53%">
		<tr>
			<td class="style23" style="width: 1910px">items</td>
			<td class="style23" style="width: 567px">Price</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung1']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung2']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung3']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung3']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung4']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung5']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung6']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung7']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px"><?php echo $_POST['Samsung8']; ?>&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 1910px">&nbsp;</td>
			<td style="width: 567px">&nbsp;</td>
		</tr>
	</table>
			<form action="" method="post" style="width: 184px">
			  total:<?php echo $_POST["tvalue = Samsung1 + Samsung2 + Samsung3 + Samsung4 + Samsung5 + Samsung6 + Samsung7 + Samsung8"]; ?> 
</form>
	  </td>
	<td width="50"><img src="../../../../Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
	<td width="200" valign="top">&nbsp;</td>
	<td width="100%">&nbsp;</td>
  </tr>
  <tr>
	<td width="155">&nbsp;</td>
	<td width="1"></td>
	<td width="50">&nbsp;</td>
	<td style="width: 199px">&nbsp;</td>
	<td style="width: 364px">&nbsp;</td>
	<td width="50">&nbsp;</td>
	<td width="200">&nbsp;</td>
	<td width="100%">&nbsp;</td>
  </tr>
</table>
</body>
</html>

<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
	$sender = $contact_email;
	$receiver = "yourname@yourdomain.com";
	$client_ip = $_SERVER['REMOTE_ADDR'];
	$email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form provided by http://www.flashmo.com";		
	$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

	if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) ) 
	{
		echo "success=yes";
	}
	else
	{
		echo "success=no";
	}
}
?>

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: how to add this item to my cart..

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6048
  • View blog
  • Posts: 23,474
  • Joined: 23-August 08

Re: how to add this item to my cart..

Posted 16 October 2009 - 05:05 AM

Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:
  • Post the code you're having problems with
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
  • Post your question in the body of your post, not the description field

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1