Riparian Posted November 5, 2008 Share Posted November 5, 2008 Can someone tell me what is happening here as this would be really helpful if it works. This is in the Tutorials Section (phpfreaks) I copied this and immediately get errors at the echo <<< NEWENTRY .. // list input box for adding new entry echo <<<NEWENTRY <tr> <td bgcolor = 'gray'></td> <td><input type = 'text' name = 'name'></td> <td bgcolor = 'gray'></td> </tr><tr> <td></td> <td align = 'center'><input type = 'submit' value = 'submit'></td> <td></td> </tr> </table> </form> NEWENTRY; /**** end list everything out **** Link to comment https://forums.phpfreaks.com/topic/131426-solved-help-with-echo/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 5, 2008 Share Posted November 5, 2008 Please read the requirements and warnings about the heredoc closing identifier tag - http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Based on what you posted, it has some white-space at the start of the line it is on. Link to comment https://forums.phpfreaks.com/topic/131426-solved-help-with-echo/#findComment-682584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.