Jump to content

[SOLVED] help with echo<<<


Riparian

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.