ataloss Posted December 11, 2013 Share Posted December 11, 2013 hi guys I just would to know the correct code for these two lines. thanks for the help. <input type=text size = 10 value="<?php echo '$playdate'?>"; <input type=text size = 10 value="playtime<?php echo '$time'?>"; Link to comment https://forums.phpfreaks.com/topic/284717-need-syntax-help-with-code/ Share on other sites More sharing options...
paddy_fields Posted December 11, 2013 Share Posted December 11, 2013 <input type="text" size = "10" value="<?php echo $playdate; ?>"/> <input type="text" size = "10" value="<?php echo $time; ?>"/> Link to comment https://forums.phpfreaks.com/topic/284717-need-syntax-help-with-code/#findComment-1462136 Share on other sites More sharing options...
requinix Posted December 11, 2013 Share Posted December 11, 2013 Remove the quotes on the variable (1. variables don't work in quotes and 2. don't use quotes if all you have inside is a variable) and please use a semicolon (it's technically optional there). Link to comment https://forums.phpfreaks.com/topic/284717-need-syntax-help-with-code/#findComment-1462137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.