0

I am trying pass this code for html but not work, load as text.

HTML:

<div id="captcha-wrap">
<p>
</p>
<!-- show the captcha result - fail/pass -->
<div id="captcha-status">
</div>

JS:

$("#captcha-wrap").append("&lt;?php require_once('_control/showcaptcha.php'); ?&gt;");

1 Answers1

1

You can't append PHP like that. Have a look at using AJAX.

Community
  • 1
  • 1
monkee
  • 399
  • 2
  • 11