I want to load a PHP include that I defined inside a textarea, but the problem is that it won't load when I put it into a specified query string. Look:
CODE
<?php
if ( isset( $_GET['id'] ) ){
$page = $_GET['id'];
}
if ( empty( $id ) || $id == '' || $id == '0' ){
echo "Content";
} else if ( $id == '1' ){
echo "<textarea style=\"width:350px; height:80px; overflow:auto;\" onfocus=\"this.select();\"><?include('FILENAME.php'); ?></textarea>";
} else if ( $id == '2' ){
echo "Content";
} else {
echo "Error, please go back.";
}
?>
if ( isset( $_GET['id'] ) ){
$page = $_GET['id'];
}
if ( empty( $id ) || $id == '' || $id == '0' ){
echo "Content";
} else if ( $id == '1' ){
echo "<textarea style=\"width:350px; height:80px; overflow:auto;\" onfocus=\"this.select();\"><?include('FILENAME.php'); ?></textarea>";
} else if ( $id == '2' ){
echo "Content";
} else {
echo "Error, please go back.";
}
?>
Alright, on Line 9, you'll see I used the PHP include code so I could display the contents of another page into that query string. For some reason, it won't load though, and it won't load even without the textarea tags. I tried adding the little php suffix after the "?" on that line, and still nothing. Help!
Also, could I include to another page that has another query string withing it, like if I were to replace "FILENAME.php" with "FILENAME.php?id=1"? Thanks.