Re: Escaping double quotes
| From: | Shane | Date: | Thu, 25 May 2006 20:52:46 +0000 |
| Subject: | Re: Escaping double quotes | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236909@lists.php.net to get a copy of this message | ||
Not sure I understand your question correctly. I think you can just use soemthing like:
echo '<form action="myform.php" method="post">';
Mindaugas L wrote:
or heredeoc syntax :) On 5/25/06, John Nichel <john@kegworks.com> wrote:Pavleck, Jeremy D. wrote:So I'm writing this page (PHP Newbie here) and it checks to see if avaris set, if it isn't it spits out the form info like so: echo "<form action="myform.php" method="post">"; Now is there a way to 'wrap' that so I don't have to escape quotes? Something like perls 'qq' function is what I'm looking for. I tried a few different functions from the website, magic_quotes, addslashes, htmlspecial etc etc but none did what I was looking forhttp://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php