Php script not work

my scripts work in my pc local webserver but not work in real webhost

example:

<?
echo ‘<form method=“post” action="’;echo $_SERVER[‘PHP_SELF’];echo ‘“>
<table border=“0” width=“300” cellspacing=“0” cellpadding=“0”>
<tr>
<td height=“30”><p align=“center”>Your E-mail:</p></td>
<td height=“30”><p align=“center”><input type=“Text” name=“email”></p></td>
</tr>
</table>
<input type=“hidden” name=“ref” value=”’;echo $r;echo ‘">
<input type=“Submit” name=“submit” value=“I agree”>
</form>’;

if ($submit == true) {

/* — My executable script — */

} else {
}
?>

what can i do?

change if ($submit == true) { to
if (!empty($_POST[‘submit’])) {

but what you really can do - to give more detailed explanation instead of just “not working”.

Your real webhost might have short tags disabled, try using <?php instead of <?