<h2>Conditional Statements and Looping Structures</h2>
<p style = "text-align:center">
<a href="#if_else">[&nbsp;<span class="code">if...else</span>&nbsp;Statement&nbsp;]</a>
<a href="#switch">[&nbsp;<span class="code">switch</span>&nbsp;Statement&nbsp;]</a>
<a href="#while_loop">[&nbsp;<span class="code">while</span>&nbsp;Loop&nbsp;]</a>
<a href="#for_loop">[&nbsp;<span class="code">for</span>&nbsp;Loop&nbsp;]</a>
</p>
<p>
<h3><a id="if_else"><span class="code">if...else</span> Statement</a></h3>
This all-in-one Web form prompts the user to enter a 4-digit birth year, 
which is validated for numeric input. The browser displays the user's 
Chinese Zodiac sign and the associated Zodiac image using an 
<span class="code">if...else</span> statement.
<div style = "text-align:center">
<a href="BirthYear_ifelse.php">[&nbsp;Test&nbsp;the&nbsp;Script&nbsp;]</a>
<a href="ShowSourceCode.php?source_file=BirthYear_ifelse.php">[&nbsp;View&nbsp;the&nbsp;Source&nbsp;Code&nbsp;]</a>
</div>

<h3><a id="switch"><span class="code">switch</span> Statement</a></h3>	
This all-in-one Web form prompts the user to enter a 4-digit birth year, 
which is validated for numeric input. The browser displays the user's 
Chinese Zodiac sign and the associated Zodiac image using a 
<span class="code">switch</span> statement.
<div style = "text-align:center">
<a href="BirthYear_switch.php">[&nbsp;Test&nbsp;the&nbsp;Script&nbsp;]</a>
<a href="ShowSourceCode.php?source_file=BirthYear_switch.php">[&nbsp;View&nbsp;the&nbsp;Source&nbsp;Code&nbsp;]</a>
</div>

<h3><a id="while_loop"><span class="code">while</span> Loop</a></h3>
This page uses a 
<span class="code">while</span> 
loop to display all of the years from 1912 to the current
year in a table with each year under the appropriate sign.
<div style = "text-align:center">
<a href="Chinese_Zodiac_while_loop.php">[&nbsp;Test&nbsp;the&nbsp;Script&nbsp;]</a>
<a href="ShowSourceCode.php?source_file=Chinese_Zodiac_while_loop.php">[&nbsp;View&nbsp;the&nbsp;Source&nbsp;Code&nbsp;]</a>
</div>

<h3><a id="for_loop"><span class="code">for</span> Loop</a></h3>
This page uses a 
<span class="code">for</span>
loop to display all of the years from 1912 to the current
year in a table with each year under the appropriate sign.<br>
<div style = "text-align:center">
<a href="Chinese_Zodiac_for_loop.php">[&nbsp;Test&nbsp;the&nbsp;Script&nbsp;]</a>
<a href="ShowSourceCode.php?source_file=Chinese_Zodiac_for_loop.php">[&nbsp;View&nbsp;the&nbsp;Source&nbsp;Code&nbsp;]</a>
</div>
</p>
