Page 1 of 1

urgent quick fix!!!

Posted: Thu Jan 20, 2005 10:18 am
by snicolas
Hey guys,

I set a variable like this to display a button

$var = "<input type=button etc..>";

now I really need to use double quote inside this button but can't see how to write it???
Should be

$var = "<input type=button name="the button">";

I need the double quote as i include some javascript so how do i do this?

s

Posted: Thu Jan 20, 2005 10:21 am
by feyd

Code: Select all

$var = '<input type="button" name="the button" />';
// or
$var = "<input type="button" name="the button" />";
at any rate, you need to pick better topic titles please. A refresher for our guidelines can be found here: viewtopic.php?t=8815