Advanced Search

Results 1 to 2 of 2

Thread: counter

  1. #1
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default counter

    Hello,

    I have a page with a registration form on it, when click submit, it sends me to a thank you page where I have the choice of paying with paypal or click a button to add another person. If I click "add another member" I go back to my first page.
    What I'd like, it's to have a counter to count how many times I went back and add a member so when I am ready to check out and pay it will show me the right amount.
    Do you know any simple script which can do that?
    Thank you.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,156
    Thanks
    262
    Thanked 690 Times in 678 Posts

    Default

    A simple script for this seems like a bad idea.
    I mean... if money is involved, then you need something more secure. Or at least your customers will want something more secure.

    A counter is easy. A counter for a certain person is harder. And a counter for a certain person that accesses a certain page only in a certain way by doing something is harder.

    the code itself is pretty easy, but you need to figure out how it will count.

    You need to come up with the logic of what EXACTLY counts as a "hit", then it's just a matter of counting hits.

    How will the php code know if it's a hit or not?
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •