This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xmlhttp = new xmlhttpRequest(); | |
xmlhttp.onreadystatechange = function(){ | |
if (this.readyState == 4 && this.status == 200) { | |
document.getElementById("name").innerHTML = this.responseText; | |
} | |
}; | |
xmlhttp.open("GET","data/mydata.php?data=nama",true); | |
xmlhttp.send(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="show"></div> | |
<script> | |
function timer(){ | |
var i = 0; | |
setInterval(function(){ | |
i++; | |
document.getElementById("show").innerHTML = i; | |
if(i > 5){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="show"></div> | |
<script> | |
function timer(){ | |
var i = 0; | |
setInterval(function(){ | |
i++; | |
document.getElementById("show").innerHTML = i; | |
if(i > 5){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = "127.0.0.1:3306"; | |
$user = "root"; | |
$pass = ""; | |
$db = "malikdata"; | |
$line = new mysqli($host,$user,$pass,$db); | |
if($line->connect_error){ | |
echo "<br>connection error".$line->connect_error; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 0; | |
var b = document.getElementsByClassName("none"); | |
anim(); | |
function anim(){ | |
a++; | |
if(a > 3){ | |
a =1; | |
} | |
b[a].style.display = "block"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = "127.0.0.1:3306"; | |
$user = "root"; | |
$pass = ""; | |
$db = "malikdata"; | |
$line = new mysqli($host,$user,$pass,$db); | |
if($line->connect_error){ | |
echo "<br>connection error".$line->connect_error; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function preimg(){ | |
var fileimage = document.getElementById("fileimage"); | |
var showimage = document.getElementById("showimage"); | |
fileimage.addEventListener("change",function(){ | |
showimage.src = window.URL.createObjectURL(this.files[0]); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" action="upload.php" enctype="multipart/form-data" > | |
<input type="file" name="up"> | |
<input type="submit" value="upload"> | |
</form> | |
//php upload.php | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<link rel="stylesheet" href="../core/w3.css"> | |
<style > | |
#textareaB{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="form" method="post" action="upload.php" enctype="multipart/form-data" > | |
<label for="pilih" class="w3-button w3-teal w3-padding">pilih</label> | |
<img id="showimage" class="w3-col s4 "> | |
<input id="pilih" type="file" name="up" class="w3-hide" > | |
</form> |
OlderNewer