Jump to content

escaping echo '';


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.