Open rhaubt opened 6 years ago
Using Variables and Arithmetic Operators https://www.w3schools.com/php/php_operators.asp $num1 = 1; $num2 = 2; $sum = $num1+&num2; echo $sum;
$num1 = 1; $num2 = 2; $sum = $num1+&num2; echo $sum;
Strings using single and double quotation marks
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>
Link to w3schools HTML Form https://www.w3schools.com/html/html_forms.asp
Using Variables and Arithmetic Operators https://www.w3schools.com/php/php_operators.asp
$num1 = 1; $num2 = 2; $sum = $num1+&num2; echo $sum;
Strings using single and double quotation marks
Using Forms Get & Post