Parse Error help

Can anyone help me out with a Parse error?
Everytime I use the script it gives me this error:

Parse error: parse error, unexpected ')', expecting ',' or ';' in /home/m0hawk/public_html/hmk/mapsubmitted.php on line 3

Im basically trying to make a form so people can submit request maps for my Counter Strike server.

Here is the code for maps.php:

[code]<?
if(isset($HTTP_POST_VARS[‘newMapName’]) && $HTTP_POST_VARS[‘newMapName’] != “”){
$map = $HTTP_POST_VARS[‘newMapName’]; //do something with the new map
echo $map;
/// bla bla bla
}
else{
echo “

”;
echo “”;
echo “”;
echo “”;
echo “
”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “
”;
echo “Please Enter map name:”;
echo “
”;
echo “”;
echo “
”;
echo " ";
echo “
”;
echo “Request Map”;
echo “
”;
echo “”;
echo “
”;
}

?>[/code]

And the code for the mapsubmit.php:

<? if( isset( $HTTP_POST_VARS['map']) ){ echo $HTTP_POST_VARS['map'])."<BR>"; ?>

Is there anything wrong with the script to give me the said error?

In the second file, mapsubmit.php, you have this line:

echo $HTTP_POST_VARS['map'])."<BR>"; 

It should be this instead (without the bracket):

echo $HTTP_POST_VARS['map']."<BR>"; 

Cheers, but now I’m getting another error that makes no sense to me.

Parse error: parse error, unexpected $ in /home/m0hawk/public_html/hmk/mapsubmitted.php on line 4

Thing is, there is no $ on line four:

?>

Thats all line four is.

look at the lines above it.

Sponsor our Newsletter | Privacy Policy | Terms of Service