html to php with echo <<<
| From: | adi | Date: | Tue, 03 Sep 2002 09:18:28 +0000 |
| Subject: | html to php with echo <<< | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114997@lists.php.net to get a copy of this message | ||
I try to transform a html file in -php file, but i have errors in it("Error in page.")
Where is mistake?
index.php WRONG
<?
echo <<<END
<HEAD>
<script language="JavaScript" src="date-picker.js"></script>
</HEAD>
<BODY>
<center>
<form name=calform>
<input type=text name="datebox" size=15><a
href="javascript:show_calendar('calform.datebox');"
onmouseover="window.status='Date Picker';return true;"
onmouseout="window.status='';return true;"><img
src="show-calendar.gif" width=24 height=22 border=0></a>
</form>
</center>
</BODY>
END;
?>
index.html GOOD:
<HEAD>
<script language="JavaScript" src="date-picker.js"></script>
</HEAD>
<BODY>
<center>
<form name=calform>
<input type=text name="datebox" size=15><a
href="javascript:show_calendar('calform.datebox');"
onmouseover="window.status='Date Picker';return true;"
onmouseout="window.status='';return true;"><img
src="show-calendar.gif" width=24 height=22 border=0></a>
</form>
</center>
</BODY>
tx in adv for any help
Ady