Example #1
0
</head>
	<body>
	<div id="main">
	<form action="" method="post">
	
		<div class="<?php 
echo getFieldErrorClass($validationErrors, 'temperature');
?>
">
				<label for="temperature">Enter the temperature:</label>
				<input type="text" id="temperature" name="temperature" value="<?php 
echo $temperature;
?>
"/>
				<?php 
echo formErrors(getValue($validationErrors, 'temperature', []));
?>
			</div>
		<br>
		<br>		
		<div>
		<label>Please choose the conversion type:</label>
		<select name="conversion">
					<?php 
foreach ($conversions as $key => $value) {
    ?>
					<option value="<?php 
    echo $key;
    ?>
"><?php 
    echo $value;
Example #2
0
echo formErrors(getValue($validationErrors, 'firstNumber', []));
?>
			</div>
		<br>
		<br>
		<div class="<?php 
echo getFieldErrorClass($validationErrors, 'secondNumber');
?>
">
				<label for="secondNumber">Enter the second number:</label>
				<input type="text" id="secondNumber" name="secondNumber" value="<?php 
echo $secondNumber;
?>
"/>
				<?php 
echo formErrors(getValue($validationErrors, 'secondNumber', []));
?>
			</div>
		<br>
		<br>		
		<div>
		<label>Please choose the operation:</label>
		<select name="operation">
					<?php 
foreach ($operations as $key => $value) {
    ?>
					<option value="<?php 
    echo $key;
    ?>
"><?php 
    echo $value;
Example #3
0
				
			</div>
			<div>
					<label for="seconds_add">Seconds to add:</label>
					<input type="text" id="seconds_add" name="seconds_add"/>
				
			</div>				
			<h3>Enter the format and get your result:</h3>	
			<div class="<?php 
echo getFieldErrorClass($validationErrors, 'user_format');
?>
">
					<label for="user_format">Enter format:</label>
					<input type="text" id="user_format" name="user_format"/>
					<?php 
echo formErrors(getValue($validationErrors, 'user_format', []));
?>
			</div>			
			<div class="user_result">
					<label for="user_result">The new date:</label>
					<input type="text" id="user_result" name="user_result" value="<?php 
echo $newDate;
?>
"/>
					</div>	
			<br>
			<br>
			<input type="submit"/>		
		</form>
	</div>	
</body>
Example #4
0
		<br>
		<br>
		<div class="<?php 
echo getFieldErrorClass($validationErrors, 'day');
?>
">
				<label for="day">Enter day:</label>
				<input type="text" id="day" name="day"/>
				<?php 
echo formErrors(getValue($validationErrors, 'day', []));
?>
			</div>
		<br>
		<br>		
		<div class="<?php 
echo getFieldErrorClass($validationErrors, 'year');
?>
">
				<label for="year">Enter year:</label>
				<input type="text" id="year" name="year"/>
				<?php 
echo formErrors(getValue($validationErrors, 'year', []));
?>
			</div>	
		<br>
		<br>
		<input type="submit" />			
	</form>
</div>
</body>
</html>
Example #5
0
?>
">
				<label for="password1">Enter Password:</label>
				<input type="password" id="password1" name="password1" />
				<?php 
echo formErrors(getValue($validationErrors, 'password1', []));
?>
			</div>
			<div class="<?php 
echo getFieldErrorClass($validationErrors, 'password2');
?>
">
				<label for="password2">Retype Password:</label>
				<input type="password" id="password2" name="password2" />
				<?php 
echo formErrors(getValue($validationErrors, 'password2', []));
?>
			</div>
			<div>
				<input type="submit" />
			<div class="<?php 
echo Hello($validationErrors, 'username', 'password1', 'password2');
?>
">
		<label for="hello">Hello, <?php 
echo $username;
?>
</label>
		
		 
		<br>