SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Location
    Houston, TX
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question AJAX Star Rating - saving results to mysql?

    In reference to this program:
    http://www.nofunc.com/AJAX_Star_Rating/

    I'm familiar with php and mysql but not javascript. To save the results to a database would the line below be where I would put the url to send the results?

    Code JavaScript:
    req=new XMLHttpRequest(); req.open('GET','?vote='+(v/100),false); req.send(null);

    Thanks for any input.

    Tim

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    As the second param:
    Code javascript:
    req=new XMLHttpRequest();
    req.open('GET','youphpfile.php?vote='+(v/100),false);
    req.send(null);
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona


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
  •