Jump to content

html embed help


ksun

Recommended Posts

Variables are not interpreted inside a single-quoted string; only in double-quoted strings.

 

Also, you have to use curly-braces for complex variables in a string (i.e. an array element)

 

And, you need quotes around the value (for HTML)

 

echo "<input type='radio' name='character' value='{$data[0]}' /><br />";

Link to comment
https://forums.phpfreaks.com/topic/273569-html-embed-help/#findComment-1407850
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.