String 1:
String 2:
String 1:
String 2:
<?php
include('../../includes/header.php');
error_reporting(E_ALL);
$firstStr = isset($_GET['firstStr']) ? $_GET['firstStr'] : "";
$secondStr = isset($_GET['secondStr']) ? $_GET['secondStr'] : "";
//assigning the first and second string values to be their respective counterparts in the GET array. or an empty string.
?>
<form> <!--form, with no action or method because i wanted to see what would happen.
the method is by default, get, and the action is set to this file-->
<label for="str1">String 1:</label><br>
<input type="text" id="str1" name="firstStr" value=""><br>
<label for="str2">String 2:</label><br>
<input type="text" id="str2" name="secondStr" value=""><br><br>
<input type="submit" value="Submit">
</form>
<body><p>String 1: <?php echo $_GET["firstStr"]; ?><br>
String 2: <?php echo $_GET["secondStr"]; ?></p></body>
<?php
$sensum = $firstStr . $secondStr;
echo("<h3>Sum = $sensum</h3>");
include('../../includes/footer.php');
?>