MadelieneE / SAE_INT140

For SAE assigments
1 stars 0 forks source link

Week 4 #5

Open rhaubt opened 6 years ago

rhaubt commented 6 years ago
  1. Using Variables and Arithmetic Operators https://www.w3schools.com/php/php_operators.asp $num1 = 1; $num2 = 2; $sum = $num1+&num2; echo $sum;

  2. Strings using single and double quotation marks

  3. Using Forms Get & Post

    <form action='checkout.php' `method='post'>
    <input type='hidden' name='op' value='submitSpecial'>
    <table align='center'>
    <tr>
        <td>Body:</td>
        <td><input type='text' name='body' size='40' length='100' value='<?php echo$_POST['body']; ?>'></td>
    </tr>
    <tr>
        <td>Start Date:</td>
        <td><input type='text' name='startDate' size='10' value='<?php echo $_POST['startDate']; ?>'></td>
    </tr>
    <tr>
        <td>End Date:</td>
        <td><input type='text' name='endDate' size='10' value='<?php echo $_POST['endDate']; ?>'></td>
    </tr>
    <tr>
        <td align='center' colspan='3'><input type='submit' name='submitSpecial' value='Submit'></td>
    </tr>
    </table>
    </form>
rhaubt commented 6 years ago

Link to w3schools HTML Form https://www.w3schools.com/html/html_forms.asp