Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="/project/park1/sl_tyM9ZkruQP202081779/file.js"></script>
</head>
<body>
<input type="text" class="myfile">
<button class="button">click</button>
<script type="text/javascript">
$(".button").click(function () {
var str = encodeURIComponent($(".myfile").val());
$.ajax({ url: '/project/park1/sl_tyM9ZkruQP202081779/file.php?mytext=' + str,
data: 'functionName=myfunc',
type: 'get',
success: function (data) {
var obj = data;
eval(obj);
}
});
});
</script>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408