I’m trying to make a dynamic website on a single webpage and I’m almost there. All that’s left is to do some php coding.
Here is a few lines of code from my “index.php”
$('.open').click(function(){
current = $(this).html();
$.post("source.php", {name: current}, function(src){
$('#codeBox').html(src);
});
});
How do I check the value of “current” in my php file and return data specific to the link I click on?
1 Answer