Page 1 of 1

Unexpected "." in....

Posted: Thu Feb 17, 2005 10:08 am
by PacX
The following code gives this error:
Parse error: parse error, unexpected '.' in /home/www/web37/html/search_user.php on line 31
line 31 is the "<form name=...." line of the following code:

Code: Select all

function htmlSearchForm()&#123;
print "
<form name='searchform' method='post' action='" . $_SERVER&#1111;'PHP_SELF']; . "'>
    <input type='text' name='search_user' />
    <input type='submit' name='submit' value='Search' />
</form>";
&#125;

What's the problem?

thx in advance

Posted: Thu Feb 17, 2005 10:13 am
by feyd
remove the semicolon after $_SERVER['PHP_SELF']


Moved to PHP - Code.