ksun Posted January 24, 2013 Share Posted January 24, 2013 this code in my php while loop echo '<input type="radio" name="character" value=$data[0]; />'."<br/>"; for some reason i can't seem to get $data array value, help is appreciated ty Link to comment https://forums.phpfreaks.com/topic/273569-html-embed-help/ Share on other sites More sharing options...
DavidAM Posted January 24, 2013 Share Posted January 24, 2013 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.