PHP Formatting Issue

I’m trying to create a button that will open a window to google maps but no matter what syntax I use, the button does nothing so I’m assuming I have an error somewhere but I have no idea where. Any suggestions would be greatly appreciated.

$googleMapButton = ‘<td> <INPUT TYPE=“button” value=“Google Map Location” onclick="window.open("https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=MyKey");" </td>’;

You just defined a variable $googleMapButton with a value. echo $googleMapButton is probably what you are looking for next?

Not really, when I echo it does display a button but when pressed it does nothing. So I’m guessing I have a syntax or formatting error in my command line. I just don’t know what it is.

Well if that is the case then use firefox and add firebug to it. You can simply single step through your javascript code with ease. firebug is kind of ao must have tool for web developers.