adamsevera Posted April 29, 2015 Share Posted April 29, 2015 How can i make the following work? echo '<option value="$image1920x1080">1000 x 800</option>' Link to comment https://forums.phpfreaks.com/topic/295932-how-to-echo-variable-within-html-that-is-within-a-php-code/ Share on other sites More sharing options...
Barand Posted April 29, 2015 Share Posted April 29, 2015 Change your single quotes to double quotes and vice versa Link to comment https://forums.phpfreaks.com/topic/295932-how-to-echo-variable-within-html-that-is-within-a-php-code/#findComment-1510232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.