Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>pe6</title>
- <meta name="description" content="leren van php" />
- <meta name="keywords" content="webdesign, php, dbz ,programmeren, komma, spatie, html, xhtml, css, web standards, valid" />
- <meta name="author" content="aymen tijari" />
- <meta name="Revisit-After" content="1 days" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
- <meta http-equiv="Expires" content="-1" />
- </head>
- <body>
- <form action="pe6_19_4we4_tijari_aymenopl.php" method="post">
- <p>Naam: <input type="text" name="naam" /> </p>
- <p>Temperatuur celcius: <input type="text" name="celcius" /></p>
- <p>Temperatuur fahrenheit: <input type="text" name="fahr" /></p><br><br>
- <button type="submit">Omrekenen</button>
- </form>
- <br>
- <?php
- echo"<p><a href=\"index.php\">home</a></p>";
- ?>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>pe6 oplossing</title>
- <meta name="description" content="leren van php" />
- <meta name="keywords" content="webdesign, php, dbz ,programmeren, komma, spatie, html, xhtml, css, web standards, valid" />
- <meta name="author" content="aymen tijari" />
- <meta name="Revisit-After" content="1 days" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
- <meta http-equiv="Expires" content="-1" />
- </head>
- <body>
- <?php
- $naam = $_POST['naam'];
- $celcius = $_POST['celcius'];
- $fahr = $_POST['fahr'];
- $ab = 9/5;
- $omgezfahr = $celcius * $ab;
- $omgezfahr2 = $omgezfahr + 32;
- $omgezcel = $fahr -32;
- $omgezcel2 = $omgezcel / $ab;
- echo "<p>Beste <b>".$naam."</b></p>";
- echo "<p><b>".$fahr."</b> graden fahrenheit omgezet naar celcius is <b>".$omgezcel2."</b></p>";
- echo "<p><b>".$celcius."</b> graden celcius omgezet naar fahrenheit is <b>".$omgezfahr2."</b></p><br><br>";
- echo"<p><a href=\"pe6_19_4we4_tijari_aymen.php\">form</a></p>";
- echo"<p><a href=\"index.php\">home</a></p>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement