trying to echo if textarea?


I’m new to this.

What I am trying to do is to print or echo the text on screen if the text matches what is in the php.

Can you tell me what is wrong with this:
if ( $text11 == ‘someguy’ )
echo $_POST[“text11”];
<form id="form1" name="form1" method="post" action=""> <p> <label for="text11"></label> <textarea name="text11" id="text11" cols="45" rows="5"></textarea> </p> <p> <input type="submit" name="button" id="button" value="Submit" /> </p> </form>

thanks for your time

if ($_POST[‘text11’] == ‘someguy’) {
echo $_POST[‘text11’];

Sponsor our Newsletter | Privacy Policy | Terms of Service