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
Post a Comment