So I'm writing this page (PHP Newbie here) and it checks to see if a var
is 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.
On 25/05/06, Pavleck, Jeremy D. [EMAIL PROTECTED] wrote:
So I'm writing this page (PHP Newbie here) and it checks to see if a var
is 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?
So I'm writing this page (PHP Newbie here) and it checks to see if a var
is 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
Pavleck, Jeremy D. wrote:
So I'm writing this page (PHP Newbie here) and it checks to see if a var
is 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'
or heredeoc syntax :)
On 5/25/06, John Nichel [EMAIL PROTECTED] wrote:
Pavleck, Jeremy D. wrote:
So I'm writing this page (PHP Newbie here) and it checks to see if a var
is 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
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 [EMAIL PROTECTED] wrote:
Pavleck, Jeremy D. wrote:
So I'm writing this page (PHP Newbie
How do you escape double quotes? I have the following which is
supposed to make any " in a string into \" but it doesn't seem to
work. What's wrong with it?
$tmp_string = str_replace ("\"", "\\\"", $tmp_string);
-Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
addslashes() usually works for me...
--Joe
On Sun, Feb 25, 2001 at 01:46:30AM -0500, Ben Cheng wrote:
How do you escape double quotes? I have the following which is
supposed to make any " in a string into \" but it doesn't seem to
work. What's wrong with it?
$tmp_string = str_replace
8 matches
Mail list logo