computermax2328 Posted June 5, 2012 Share Posted June 5, 2012 The following code is a line that I have in a form that is inside of a table. The output I am getting is the 'First Name' but also the </td without the last ">" on the end. Am missing a quote or not escaping a quote correctly? Obviously, I need the </td> to be echoed as HTML. echo "<td>" . "<input type=\"text\" name=\"editfirst\" value=" $row['First Name']; "</td>"; Thanks again, Quote Link to comment https://forums.phpfreaks.com/topic/263725-quick-echo-help/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 5, 2012 Share Posted June 5, 2012 echo "<td><input type='text' name='editfirst' value='{$row['First Name']}'></td>"; Quote Link to comment https://forums.phpfreaks.com/topic/263725-quick-echo-help/#findComment-1351478 Share on other sites More sharing options...
Yawa Posted June 5, 2012 Share Posted June 5, 2012 is replacing " with ' valid html for id=" ", class=" " etc. when using echo " "; ? just wondering since I always use echo ' '; becaus of that... Quote Link to comment https://forums.phpfreaks.com/topic/263725-quick-echo-help/#findComment-1351485 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.