Use [noparse]
to start a code section, and
to end it.[/noparse]
If you're having syntax issues, echo your query to the screen/standard output and paste it here inside those tags. This provides syntax highlighting to viewers (like you, and us, too) that might help us to analyze your difficulty. Quotes in strings do give programmers fits fairly often.
This looks bogus:
<? echo "$_POST[name]"; ?>
The opening tag is a short tag; I'll assume that's ON in your configuration (a modern PHP installation has this option OFF by default). You can't put quotes around a complex variable like $POST[name'] --- and I'm fairly certain you want $POST['name'] anyway. The simplest way:
<?php
echo $_POST['name'];
If you have a legitimate need to put the variable inside double quotes, you can use curly braces to help the parser:
<?php
echo "Welcome to our website, {$_POST['name']}!!";
But most people would probably write this instead:
<?php
echo "Welcome to our website, ". $_POST['name'] . "!!";