Example: 1

	<?php
	$name="alex";

	if($name="alex")
	{
	echo "Hi, Alex.";
	}
	else
	{
	echo"
	You're not Alex? Please type your name: <br/>
	<form action='index.php' method='POST'>
	<input type='text' name='name'> <input type='submit' value='Submit'>
	</form>
	";
	}
	?>

	
Example: 2

	<?php
	$name="alex";

	if($name="alex")
	{
	echo "Hi, Alex.";
	}
	else
	{

	You're not Alex? Please type your name: <br/>
	<form action='index.php' method='POST'>
	<input type='text' name='name'> <input type='submit' value='Submit'>
	</form>

	}
	?>




Example: 3

	<?php
	$name="alex";
	
	if($name="alex")
	{
	echo "Hi, Alex.";
	}
	else
	{
	?>
	
	You're not Alex? Please type your name: <br/>
	<form action="index.php" method="POST">
	<input type="text" name="name"> <input type="submit" value="Submit">
	</form>
	
	<?php
	}
	?>
	
	
Example: 4
	
	<?php
	$name="kyle";
	
	if($name="alex")
	{
	echo "Hi, Alex.";
	}
	else
	{
	?>
	
	You're not Alex? Please type your name: <br/>
	<form action="index.php" method="POST">
	<input type="text" name="name"> <input type="submit" value="Submit">
	</form>
	
	<?php
	}
	
	?>
	
	