Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Thanked 0 Times in 0 Posts

    Rating System/Poll

    Hi, Im currently running a Universal Orlando Resort fansite and I wanted to include a rating system in which people could select from 1-5 stars, 5 being the highest, 1 being the lowest. Very much like a poll. They would be rating how much they liked an attraction. And also have an average rating that averages out what everyone entered so far.
    http://mgmstudios.org/backlottour.html - Look on the bottom right where it says Rate The Backlot Tour.
    http://www.imdb.com/title/tt0381061/ - And IMDB does a similar thing as well.

    I would think that this would just be some simple java code. Any help is appreciated!


  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,573 Times in 2,551 Posts
    This can only be done using a server-side language such as Perl or PHP. JavaScript has no ability to read from or write to a file on the server.
    There are quite a few examples at www.hotscripts.com and elsewhere.

    Java is not at all the same thing as JavaScript (which is what this forum covers) in spite of the confusingly similar names.
    Last edited by Philip M; 12-09-2006 at 05:06 PM. Reason: typo


    Posting Permissions

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