trying to echo if textarea?

Hi

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:
[php]<?php
if ( $text11 == ‘someguy’ )
echo $_POST[“text11”];
?>[/php]
<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

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

Sponsor our Newsletter | Privacy Policy | Terms of Service