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>' Quote 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 (edited) Change your single quotes to double quotes and vice versa Edited April 29, 2015 by Barand Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.