bob_the _builder Posted March 6, 2007 Share Posted March 6, 2007 Hi, Is there away to do the following which has errors: <input name="email" type="text" value="'.$email2.'" size="30" /> '. if (empty($email)) { '*' } .' rather than having to break out of the echo through out my table like so: echo '<input name="email" type="text" value="'.$email.'" size="30" />'; if (empty($_POST['email2'])) { echo '*'; } Thanks Link to comment https://forums.phpfreaks.com/topic/41399-escaping-echo/ Share on other sites More sharing options...
fert Posted March 6, 2007 Share Posted March 6, 2007 echo "<input name=\"email\" type=\"text\" value="'.$email2.'" size=\"30\" />"; Link to comment https://forums.phpfreaks.com/topic/41399-escaping-echo/#findComment-200537 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.