topical media & game development

talk show tell print

mashup-flickr-03-exercises-3-2.php / php

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  <html xmlns="">
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <title>Flickr Mashups</title>
    <h1>Exercise 3-2</h1>
    <p>Enter three numbers</p>
    <form method="post" action=<3-2.php>>
      <input type="text" name="num1" /><br/>
      <input type="text" name="num2" /><br/>
      <input type="text" name="num3" /><br/>
      <input type="submit" value="Submit" /><br/>
    num1 = _REQUEST["num1"];
    num2 = _REQUEST["num2"];
    num3 = _REQUEST["num3"];
    total = num1 + num2 + num3;
    <p>The total is <?php echo total ?></p>

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