Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~6K People Reached
Favorite Forums
Favorite Tags
Member Avatar for razar63

Hi All I have a simple add to shortlist function using php and would like to add a success Alert message so that users know that the item was added to the shortlist. Ive tried the following code without success. // check if the item is in the array, if …

Member Avatar for broj1
0
1K
Member Avatar for razar63

I now have a simple "shopping cart" script that I have converted to an "add to shortlist" script to better suit my website. Everything wokrs great however after you click the add to shortlist link it goes to the shortlist page. Here is the code for "add to shortlist" <a …

Member Avatar for razar63
0
4K
Member Avatar for razar63

Im trying to bebug some javascript in firefox and I keep getting this error. SyntaxError: syntax error data: {action: addtocart, id: <br /> the javascript is this: <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ $.ajax({ url: 'shopping2/includes/functions.php', type: 'POST', data: {action: addtocart, id: <?php echo $pid; ?> }, cache: false, success: function(data){ …

Member Avatar for hericles
0
284
Member Avatar for razar63

Here is the code <?php session_start(); ?> <!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"> <head> <meta name="description" content="PHP Shopping Cart Using Sessions" /> <meta name="keywords" content="shopping cart tutorial, shopping cart, php, sessions" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" media="all" href="/style/style.css" type="text/css" /> <title>Cart</title> <?php include("header_1.php"); …

Member Avatar for matrixdevuk
0
394
Member Avatar for razar63

Hi I'm built a fairly basic add to shortlist function on my website similar to a session based add to cart. Here is the code for my add to shortlist button. <a href = "http://www.website.com/cart.php?action=add&id=' . $id . '" <b>Add to Shortlist<b> </a> Here is the code for my cart …

Member Avatar for razar63
0
330