RE: [PHP-WIN] How to echo the end marker '?>'
| From: | brother - Martin Bagge | Date: | Fri, 08 Nov 2002 12:05:51 +0000 |
| Subject: | RE: [PHP-WIN] How to echo the end marker '?>' | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16811@lists.php.net to get a copy of this message | ||
Philipp Bolliger:
> Hi everyone,
>
> 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 ?
you want to do this:
echo "<form action=\"<?php echo $PHP_SELF ?>\">"; right?
consider this: echo "<form action=\"$PHP_SELF\">";
/brother