I am trying to assign a PHP variable to an html radio button value like this:
echo "<input type='radio' name='mydisctopic' value="($row['message'])">",($row['message']),"<br>";
but i keep getting the error:
Parse error: syntax error, unexpected '(', expecting ',' or ';' in ...
Can you help? Thanks!
$row['message']you have ended the string you began to echo, so parse error. By the way, quoting is not enough; you must also usehtmlspecialcharson the value.