How can I set large amounts of HTML code with POST variables to a variable in PHP? -
$content = '<div id="contact" style="display:''; border-radius: 5px; padding: 20px;" class="center"><br><!--spacing--><br><!--spacing--></div> <div id="contact" style="display:''; border-radius: 5px; background-color: #ebebeb; padding: 20px;" class="center"> <form> <center><h4><b>' . $_post['email1'] . " " . $_post['email2'] . '</b></h4></center> <br><!--spacing--> <center>' . $_post['email4'] . '<center> <br><!--spacing--> <center>' . $_post['email3'] . '<center> <br><!--spacing--> <center>' . $_post['email5'] . '<center> <br><!--spacing--> <center><img src="rushforms/profile_images/' . $_post['file_number'] . '.png"/></center> <center><img src="rushforms/profile_images/' . $_post['file_number'] . '.jpg"/></center> <center><img src="rushforms/profile_images/' . $_post['file_number'] . '.gif"/></center> </form> </div>';
how can set of $content
?
i under impression ' ' used set html code variable in php.
it work when have such content can easier use heredoc or nowdoc syntax .
it avoid concatenations.
Comments
Post a Comment