Hello all, I'm a basic coder 😀
I want to insert a line break in this code, after the {hobby:value} it gives me : syntax error, unexpected '>'
Thanks a million!

if($_POST['form']['hobby'] == '')
  $modUserEmailText = str_replace('{hobby:caption} : {hobby:value}', ''<br/>'',$modUserEmailText);

    Note the doubled-up ' around your linebreak tag.
    But what you're describing ("insert a line break after this text") is not what the code is doing ("replace this text with a line break"). Do you want to keep the {hobby:caption} : {hobby:value} text in the result?

      Thank for the reply 🙂
      Yeah the {hobby:caption} : {hobby:value} are placeholders in the sent email, since there are several of them, all I want is a line break between each.. and must end with $modUserEmailText);
      is this possible to do?

      {hobby:caption} : {hobby:value}
      {age:caption} : {age:value}
      {book:caption} : {book:value}

        It just means using the . operator to put the bits together.

          Write a Reply...