Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Shopping cart and Variables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shopping cart and Variables

 Post Reply Post Reply
Author
sprychun View Drop Down
Newbie
Newbie


Joined: 19 July 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote sprychun Quote  Post ReplyReply Direct Link To This Post Topic: Shopping cart and Variables
    Posted: 25 July 2003 at 12:10pm

First question: What is the best way to go about having an insecure shopping cart? Cookies?
Second question: In an ASP page how can I carry a variable from one page to the next? Through a link?

Back to Top
Flamewave View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 June 2002
Location: United States
Status: Offline
Points: 376
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flamewave Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 12:48pm

For your first question, cookies would work, but I think using a database would be the best way. Even a text file on the server would work, although using a database is much better.

For your second question, you can use a querystring (get)/form (post), session variable, or a cookie. There may be other ways, but these are the most popular and easiest that I know of.

- Flamewave

They say the grass is greener on the other side, but if you really think about it, the grass is greener on both sides.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 3:18pm
If you are making a shopping cart it might be worth having some security like basic database encryption and i would also advice not to use text files unless permissions deny directory listing and have encoding/encryption...

Edited by Mart
Back to Top
sprychun View Drop Down
Newbie
Newbie


Joined: 19 July 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote sprychun Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 5:10pm
Thank you for the help! How do those GET POST commands look in code?
Back to Top
Flamewave View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 June 2002
Location: United States
Status: Offline
Points: 376
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flamewave Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2003 at 9:32pm
The get and post were reffering to form actions, which is html. I don't think you can manually create a form variable without submitting a form, but you can manually make a querystring (also what a form uses when you use the get methood). Although you have to be careful with querystring variables has they are much eaiser to hack then form and session variables are.
- Flamewave

They say the grass is greener on the other side, but if you really think about it, the grass is greener on both sides.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2003 at 3:26am
file.asp is the file in which you want to retrive querystring variables in this example.  If  you goto file.asp?variable1=hello and in file.asp  put <%=request.querystring("variable1")%>  it  should  write  'hello'.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.