applicant-site/public/json.php

18 lines
396 B
PHP
Raw Permalink Normal View History

2024-03-06 15:49:43 +03:00
<?php
header('Content-Type: application/json; charset=utf-8');
if(isset($_POST['ajx'])) {
if($_POST['ajx']=='get_fak_info') {
}
if($_POST['ajx']=='get_napr') {
if(isset($_POST['format'])&&$_POST['format']=='html'){
2024-03-07 13:08:28 +03:00
$out['html'] = $_POST['predmets'];
2024-03-06 15:49:43 +03:00
}
;
}
echo json_encode($out);
}
//echo '<table><tr><td>1</td><td>2</td></tr></table>';