Results 1 to 7 of 7

Thread: I'm not sure if its possible... but its a challenge!

  1. #1
    Join Date
    Dec 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default I'm not sure if its possible... but its a challenge!

    What I need is some kind of script or something else (whatever it might be) to be able to add or subtract points on one page, from a total on another page.

    Here's what I mean:

    _____________________
    webpage one:

    Click here to add 5 points
    Click here to lose 5 points

    ____________________

    webpage two:

    500 points total
    ___________________

    When the buttons on page one are clicked, the total number on page two will change.

    Even hypothetically, what would I need to do to make this happen (unless there is a solution you know of)?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Do you intend the pages to be displayed at the same time (in different windows/tabs? <iframe>s?)? If yes, does it need to persist after the pages are closed? Is this per user, or will the total be global to everyone who visits the server?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    The pages will not be opened at the same time and I would like the 'total number' to stay they way it was modified until it is modified again, even if the pages close. In addition, the number would be the same for everyone who looks at it and if it is changed, then it would change for everyone.

    The pages could both be in frames on the same page if need be... but I'd rather it not be that way.

    I'm very pessimistic about the possibility of this...

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It is possible, and quite easy. However, it will require some form of server-side scripting support on your server. Do you have this, and if so, what language(s) or setup do you have available? Ask your host if you're not sure.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Dec 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I don't believe I do. Can you explain? Where can I find this for a low monthly fee?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    In a static Web hosting setup, the client sends a request to the server, which finds a file on the filesystem and passes it back to the client, where the file may contain some form of code to be executed by the client as well as static data. However, it is common practice to embed various hooks in the server to allow the webmaster to react to the request programmatically, weaving a response from the strands of data available — the request, files on the server, a database, or even other requests performed by the server — and thereby create dynamic pages that react to the input of the users. This is the principle behind building interactive Web 'applications' like this very forum.

    If you're looking for reasonably-priced hosting, A Small Orange provide many features, including several that will suffice for this and probably many Web-based projects in the future.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. The Following User Says Thank You to Twey For This Useful Post:

    wildmage92 (12-06-2008)

  8. #7
    Join Date
    Dec 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Much thanks!

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
  •