aktuelle.kurse/m133/Modul_Unterlagen_133_VOR/01-Modulinhalte/07 Script (JQuery)/07 jQuery Lösungen/jQuery5.html
Harald G. Mueller cdff097ef7 muh
2022-03-17 11:19:26 +01:00

24 lines
724 B
HTML

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.js""></script>
<script type="text/javascript">
$(document).ready(function() {
$("#btn1").click(function () {
var txt=$('input:text[name=iofield]').val();
alert(txt);
$.get( "http://localhost/M133/jquery/jquery5.php", {name: txt, time: "Test"} );
});
});
</script>
</head>
<body>
<h2>Write Textbox value into PHP file</h2>
<div id='input'>
<input type="text" size="40" id="iofield" name="iofield" />
<input type='button' id='btn1' value='CALL PHP Function to write Text value into file' />
</div>
</body>
</html>