ptwizzy Posted April 18, 2006 Share Posted April 18, 2006 I have a registration page on the project I'm working on. There is length validation involved so I am using a stand-alone validation page which recieves data posted from collection page, validates it, if there are any errors I want to create an error_log, or string with each error triggered. I want to create a string and concatenate a line of HTML to this string each time.[code]$error_log = $error_log .= "\"" <p class="\"error\"">You must enter a password.</p> "\"";[/code]Can anyone offer any advice? Link to comment https://forums.phpfreaks.com/topic/7741-concatenating-a-string-with-html-content/ Share on other sites More sharing options...
kenrbnsn Posted April 18, 2006 Share Posted April 18, 2006 You almost have it:[code]<?php$error_log .= '<p class="error">You must enter a password.</p>';?>[/code]Ken Link to comment https://forums.phpfreaks.com/topic/7741-concatenating-a-string-with-html-content/#findComment-28235 Share on other sites More sharing options...
ptwizzy Posted April 18, 2006 Author Share Posted April 18, 2006 Thank you for your help, Ken. Link to comment https://forums.phpfreaks.com/topic/7741-concatenating-a-string-with-html-content/#findComment-28401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.