Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: perl shopping cart

by gothic_mallard (Pilgrim)
on Oct 27, 2004 at 13:19 UTC ( [id://402993]=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl shopping cart
in thread perl shopping cart

With things like that, the values that are getting passed around should be for front-end display only - the only really important information that needs to be passed back is what item you want and how many. You should already know what items cost so when you recieve an order you can bill accordingly.

--- Jay

All code is untested unless otherwise stated.
All opinions expressed are my own and are intended as guidance, not gospel; please treat what I say as such and as Abigail said Think for yourself.
If in doubt ask.

Replies are listed 'Best First'.
Re^4: perl shopping cart
by Golo (Friar) on Oct 27, 2004 at 13:37 UTC
    But then, why would one use easy manipulatable formvalues for frontend display if you create the actual order based on the real price anyways?
    That sounds like a lot of duplicate work, why not simply take and calc the prices from the authorative source?
    This cart seems to use the hidden formvalues to do it's (server-side) calculations (total, tax, etc.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://402993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found