urgent quick fix!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
snicolas
Forum Commoner
Posts: 97
Joined: Tue Nov 09, 2004 8:32 am

urgent quick fix!!!

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Post Reply