0 Replies Latest reply on Oct 27, 2006 4:57 AM by drupaler

    Posting to PHP

    drupaler
      Hello

      I am looking to get a drupal voting module working again after a recent security patch breaks the module operation

      function sendAndLoadVote(vote) {
      // send to PHP page
      var voteData = new LoadVars();
      voteData.vote = vote;
      voteData.content_type = content_type;
      voteData.content_id = content_id;

      // I NEED A NEW LINE HERE

      voteData.onLoad = voteLoaded;
      voteData.sendAndLoad(url + "?rnd="+random(999),voteData,"POST");
      }

      content_id and content_type are seen as $_POST['content_id'] and $_POST'[content_type] from PHP
      i need to add some actionscript so that i can see $_POST['edit']['token'] from PHP given a token variable
      like content_id and content_type in the actionscript

      Can anyone help please ?

      Regards Paul