topical media & game development

talk show tell print

student-twitter-admin-process-edittext.pro6.php / php



  <?php
          if (isset(_POST["name"]) && isset(_POST["red"]) && isset(_POST["green"]) && isset(_POST["blue"]) && isset(_POST["words"])) {
                  file = "student-twitter-emotions.xml";
                  
                  results = getFromXML(file);
                  for(i=0; i < count(results); i++) {
                          if (results[i][0] == _POST["name"]) {
                                  results[i][1] = Array(_POST["red"], _POST["green"], _POST["blue"]);
                                  results[i][2] = explode(",", str_replace(" ", "", _POST["words"]));
                          }
                  }
                  xml = toXML(results);
                  saveToFile(file, xml);
          }
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.