473,785 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for shopping example:

Hello,

I recently bought a text on php scripting, and was trying to write
basic shopping example to explore the langauage. I would like to
achieve a site which allowed the user click one or two buttons. And we
kept a count of number of hits. My thought was to use the $_SESSION
tool to store the number of clicks, and when the user clicked the grey
submit buttton. The $_Session values would be passed to the another
php script.

$_SESSION["item1"] = 0;
$_SESSION["item2"] = 0;

My book does not include such an example, and I would much appreicate
if anyone could proivde a example similar to what I hoping to achieve.

Or just some written guidance how I could achieve this example.

Thank you
Jul 17 '05 #1
1 1577
An***********@a ol.com (Antoni) wrote in message news:<93******* *************** ****@posting.go ogle.com>...
Hello,

I recently bought a text on php scripting, and was trying to write
basic shopping example to explore the langauage.


<snip>

Do you mean this <http://groups.google.c om/groups?selm=not e-21748%40php.net >??

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2719
by: Phil Powell | last post by:
I need a back-to-basics shopping cart tutorial in PHP/mySQL. I thought I had it down and I failed, as usual. Here is what I mapped out as a spec: 3) initial work on bestilling.php to contain the following plan: 1) Cookie: 'nordicnet_bestilling' to contain unique, random 16-char string 2) Table: nnet_produkt_bestilling to contain ordering information bundled by unique bestilling_id (16-char string) a) produkt_id
1
2096
by: Stuart | last post by:
Can anyone recomend a good shopping cart script or an example of how to make one. I'm currently using http://www.mals-e.com free shopping cart script that they host. unfortunatly because they host the cart themselves I can't hack around and customise the scripts the way I want. the linking method I currently use is: <FORM name="form1" action="http://ww7.aitsafe.com/cf/add.cfm" method="post">
1
3583
by: madison | last post by:
Hi, I am trying to start a website using paypals shopping cart function. If i have 10 items and they sell out, how do I make it so the item is then listed as sold out. The next person would not be able to come along and add it to their shopping cart. thanks joy
3
2760
by: Bruce W...1 | last post by:
There are lots of examples out there of ASP.NET shopping carts, but they all stop short of SSL. If someone knows of a shopping cart example that get in to code for digital certificates please show me where. I've been researching SSL and digital certificates, not that I have a specific application in mind, I just want to know how to do it. And there seem to be many ways to process credit cards. You could do it all on your server with...
0
1090
by: John Dalberg | last post by:
Hi I want to offer web hosting and I am looking for a shopping cart server license for many sites which I can offer for my customers. The ones I have seen, the license costs more than a thousand dollars which is beyond my budget. The cart software doesn't have to be anything fancy. Preferably it costs less than $300. It's for users who sell a few items and accept and verify credit cards. I am aware of the iBuySpy software but I am...
7
2636
by: isaac2004 | last post by:
hi i have a basic asp page that acts as an online bookstore. on my cart page i am having trouble generating 3 numbers; a subtotal, a shipping total, and a final price. here is my code i would like it to work properly so that a record count counts through all the books and genertates these numbers. watch out for line breaks <%@ Language=VBScript %> <% Option Explicit %> <!--#include file="DatabaseConnect.asp"-->
3
1874
by: Samuel Shulman | last post by:
Hi I need to implement a shopping basket for my e-commerce website Scenarios are as follows 1. Website to offer shopping basket for all visitors including those who didn't log 2. Website to offer shopping basket ONLY to those that are logged
1
7300
by: jecha | last post by:
I'm implementing a shopping cart but am having a problem in checking out a person who has added item in his/her shopping busket.The code for the checkout.php script is given below <? require_once('functions.inc.php'); session_start(); do_html_header("Checkout"); $cart = $_SESSION; if($cart&&array_count_values($cart)) { display_cart($cart,false,0); display_checkout_form($HTTP_POST_VARS);
0
959
by: jools | last post by:
Slightly off topic I know but I'm asking here because I need a PHP shopping cart and thought the writers of such things might hang out here and know of one I'm using the Data Minion program (www.bialot.com) to validate all the forms on my site and would like a shopping cart that takes advantage of everything it does too. Does anyone know of one - or even one being written?
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.