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'?>"; Quote 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 (edited) <input type="text" size = "10" value="<?php echo $playdate; ?>"/> <input type="text" size = "10" value="<?php echo $time; ?>"/> Edited December 11, 2013 by paddyfields Quote 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). Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.