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
PacX
Forum Newbie
Posts: 3 Joined: Tue Feb 15, 2005 7:00 pm
Post
by PacX » Thu Feb 17, 2005 10:08 am
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(){
print "
<form name='searchform' method='post' action='" . $_SERVERї'PHP_SELF']; . "'>
<input type='text' name='search_user' />
<input type='submit' name='submit' value='Search' />
</form>";
}
What's the problem?
thx in advance
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 17, 2005 10:13 am
remove the semicolon after $_SERVER['PHP_SELF']
Moved to PHP - Code.