NogDog wrote:However, I'm not really sure what exactly you're trying to do
Oh well I was just trying to find an easy way to do this
if(isset($_GET['txt']) and $_GET['txt'] == 1) {
echo "
<div class='textbox'>
<p>This is some text 1</p>
</div>
";
}
elseif(isset($_GET['txt']) and $_GET['txt'] == 2) {
echo "
<div class='textbox'>
<p>This is some text 2</p>
</div>
";
}
elseif(isset($_GET['txt']) and $_GET['txt'] == 3) {
echo "
<div class='textbox'>
<p>This is some text 3</p>
</div>
";
}
Because if I had say 20+ chapters, that would be 20+ if/else statements.
I'll try a foreach() and see if it helps.