topical media & game development

talk show tell print

student-twitter-admin-edittext.incl.php / php



  <?php
          name = _GET["name"];
          file = "student-twitter-emotions.xml";
          results = getFromXML(file);
          
          foreach (results as result) {
                  if (result[0] == _GET["name"]) {
                          emotion = result;
                  }
          }
          if (!isset(emotion)) { die("Emotion does not exist!"); }
  ?>
          <h1>Edit Emotion</h1>
          <center>
          <form method="POST" action="./?sub=edittext">
                  <table>
                          <tr><td>Name:</td><td><?php echo(name); ?> <input type=hidden name="name" value="<?php echo(name); ?>"></td></tr>
                          <tr><td>Color:</td><td>R <input type="text" name="red" value="<?php echo(emotion[1][0]); ?>" size="2"> G <input type="text" name="green" value="<?php echo(emotion[1][1]); ?>" size="2"> B <input type="text" name="blue" value="<?php echo(emotion[1][2]); ?>" size="2"></td></tr>
                          <tr><td colspan="2">Tekst:</td></tr>
                          <tr><td colspan="2"><input type="text" name="words" value="<?php echo implode(emotion[2], ","); ?>" size="40"></td></tr>
                          <tr><td align=right colspan="2"><input type="button" value="    Annuleren    " onClick="window.location.href= '.';"> <input type="submit" value="    Opslaan    "></td></tr>
                  </table>
          </form>
          </center>
  


(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.