Re: How to echo the end marker '?>'
| From: | Ernest E Vogelsinger | Date: | Fri, 08 Nov 2002 12:25:37 +0000 |
| Subject: | Re: How to echo the end marker '?>' | ||
| References: | 1 2 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-windows+get-16812@lists.php.net to get a copy of this message | ||
At 12:15 08.11.2002, Philipp Bolliger spoke out and said:
--------------------[snip]--------------------
>subject's allready my question ! I want to echo something like : "<form
>action = \",?php echo $PHP_SELF ?> \" >" so that the action becomes <?
>echo $PHP_SELF ?> !! But I can't figure out how to escape ?> so that the
> interpreter doesn't take it as the end of the script ! Any idea ?
--------------------[snip]--------------------
Try
echo '<form action="', '<', '?', 'php echo
$PHP_SELF', '?', '>', '">';
This should work (untested)
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/