<?php
/*---
function: make_three_value_form
purpose: expects nothing, returns nothing,
and makes a form allowing a user to enter
three values
by: Sharon Tuttle
last modified: 2016-04-21
---*/
function make_three_value_form()
{
?>
<h1> Refactored-again JavaScript form validation example </h1>
<p> <strong> note: button requires JavaScript to work! </strong> </p>
<button id="test"> MUCK with 1st textfield </button>
<form action="<?= htmlentities($_SERVER['PHP_SELF'],
ENT_QUOTES) ?>"
method="get"
id="valueForm">
<fieldset>
<legend> Enter values for application </legend>
<label for="value1">
String Value 1: </label>
<input type="text" name="first"
id="value1" required="required" /> <br />
<label for="value2">
Numeric Value 2: </label>
<input type="text" name="second" class="right"
id="value2" value="13"
required="required" /> <br />
<label for="value3">
Value 3: </label>
<input type="text" name="third"
id="value3" required="required" /> <br />
<div class="sub_button">
<input type="submit" value="submit values" />
</div>
</fieldset>
</form>
<?php
}
?>