xDimitrius
Neues Mitglied
HTML:
<html>
<div style="background-image:url(background.jpg); repeat;">
<body>
<head>
<title>myPhpGMtool</title>
</head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<form><input type="text" id="command_ra" value="<?php echo $_COOKIE['rob'];?>" height="35" width="500" style="width:500px; height:35px; font-family:Arial;font-size:16pt;">
<input type="button" name="btn1" value="Send"
style="font-family:Arial;font-size:16pt;"
onClick="send_command();"></form>
</body>
</div>
</html>
<script type="text/javascript">
function send_command(){
var com = document.getElementById("command_ra").value;
<?php setcookie("rob",com,time()+(3600*24)); ?>
location.href = 'http://localhost/Ra over Browser/command.php?c=' + com;
}
</script>
Das ist mein Code, aber leider geht das nicht was mache ich falsch?
Ich denke es liegt an PHP, besonders das snippet im javascript.