Unexpected "." in....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PacX
Forum Newbie
Posts: 3
Joined: Tue Feb 15, 2005 7:00 pm

Unexpected "." in....

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

remove the semicolon after $_SERVER['PHP_SELF']


Moved to PHP - Code.
Post Reply