私はphpにjqueryリクエストを実行したいし、phpが元のページに添付されるhtmlである値を返すようにしたい. jquery のコードは次のようになります。
$.get("phpfile.php",{'variable':variable},function(response){
$("paragraph_to_display_response").html(response);
実際にはアップロードファイル形式であるhtmlファイルをphpが応答として返すようにします。できますか?PHP コードは次のようになります。
$variable=$_GET['variable'];
//perform some checks with variable
echo ???//How can I echo an html file?
ありがとうございました!