You are here: <<<HTML « All PHP « IT news, forums, messages
<<<HTML

Posted by Cruella DeVille on 03/09/06 21:20

Let us say I have lots of html-code I want to print.... surrounded by
php code. I learned once that I could do like this:

<?php
$name = empty($_POST['name'] ? "" : $_POST['name'];

print
<<<HTML
<form method="post" action="">
Name: <input type="text" name="name" value="{$name}">
<input type="submit" name="submit" value="Press me">
</form>
HTML;

//and the rest of my php code.

Now my server is complaining about this. Is this wrong syntax? I've
tried to replace <<<HTML HTML; with <<<END END; but it doesn't make a
difference. Is it a special "code" word I've missed or is it
indifferend wethere I use <<<HTML or <<<END?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация