Forum Moderators: coopster
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line 72
Below is the code relating to these lines:
<form method=\"post\" action=\"newphotoform2.php\">
<label for=\"Owlname\">Owlname </label><input type=\"text\" name=\"Owlname\" id=\"Owlname\" size=\"15\" maxlength=\"15\" value=\"$row2['owlname']\"><br/><br/>
<label for=\"Description\">Description </label><textarea name=\"Description\" id=\"Description\" rows=\"8\" cols=\"27\">$row2['description']</textarea><br/><br/>
<fieldset>
<legend>Category</legend>
I'd be grateful if someone could help me out. Thanks.
Making some assumptions on what actually is coming before this code, my guess is that the arrays within the string are giving you the problem. Try changing what you have given to this:
<form method=\"post\" action=\"newphotoform2.php\">
<label for=\"Owlname\">Owlname </label><input type=\"text\" name=\"Owlname\" id=\"Owlname\" size=\"15\" maxlength=\"15\" value=\"{$row2['owlname']}\"><br/><br/>
<label for=\"Description\">Description </label><textarea name=\"Description\" id=\"Description\" rows=\"8\" cols=\"27\">{$row2['description']}</textarea><br/><br/>
<fieldset>
<legend>Category</legend>
Just a note: When you include arrays within a string, you must either surround it with brackets ({ and }) or you must concatenate it with the string.
Read up on this at the documentation: [us.php.net...]
Good luck! :)