json - Add an anchor tag inside a php definition -


i trying add link inside success message shown after contact form filled in , sent. output get:

{"submit_message":"bedankt voor uw vertrouwen in ons. klik hier<\/a> voor meer informatie.","isvalid":true} 

and code use (config.php):

define('_msg_send_ok', 'bedankt voor uw vertrouwen in ons. klik <a href="informatie.php">hier</a> voor meer informatie.'); 

in mail script itself:

if($isvalid == true) {         $result["submit_message"] = _msg_send_ok;     } else {         $result["submit_message"] = _msg_send_error;     }      $result['isvalid'] = $isvalid;      echo json_encode($result); 

how can add anchor tag works? , how can decode json string more normal looking text? tried json_decode, didn't work me, maybe did wrong.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -