Example code for a sample Project...of PHP Code Hypdrater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
921 B

<!DOCTYPE html>
<html>
<head>
<title>Values Testing</title>
</head>
<body>
<h1>Welcome!</h1>
{% if post_data.name %}
{{ show_user_details(safe_html) }}
{% if a_errors %}
<h2>Errors Reporeted, are:</h2>
{{ show_errors(a_errors) }}
{% endif %}
{% else %}
<form method="POST">
<table>
<tr>
<td><label for="name">Your full name</label></td>
<td><input type="text" name="name" id="name"></td>
</tr>
<tr>
<td><label for="age">Age</label></td>
<td><input type="number" name="age" id="age"></td>
</tr>
<tr>
<td><label for="email">Email Address</label></td>
<td><input type="email" name="email" id="email"></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<input type="submit" value="Submit">
</td>
</tr>
</table>
</form>
{% endif %}
</body>
</html>