Hi I am a beginner in PHP and i am trying to append a simple include
php code in a <section>
in html using Jquery .append()
.
PHP Code
<?php
$cupSize = "
<br><br>
<table width=\"100%\" border=\"0\">
<tr>
<td>
<div class=\"mainBox2\" id=\"largeCup\">
<div class=\"mainSubBox2L\">
Large
</div>
</div>
</td>
<td>
<div class=\"mainBox2\" id=\"smallCup\">
<div class=\"mainSubBox2S\">
Small
</div>
</div>
</td>
<td>
<div class=\"mainBox2\" id=\"mixCup\">
<div class=\"mainSubBox2MP\">
Mix
</div>
</div>
</td>
</tr>
</table>";
echo $cupSize;
?>
Jquery code
$('#misc').click(function(){
$('.second').append("<?php include 'cupCustomizer.php'; ?> ");
});
However it isn't working and nothing happens. I searched on StackOverflow and there are some answers with Ajax however i have no experience of server side programming. I was only good at CSS, HTML and Jquery. So help me maybe :)
Thank You