- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
9 Posted Topics
Excuse me, I want to ask how to make javascript countdown doesn't reset when page refresh?? thank you in advance | |
I've been able to create a website, but I have not been able to create a secure website. What I want to ask, what are the vulnerabilities in a website and how to create a secure website? Thanks before | |
Re: you should make use jquery. this is for example: file a.php <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript" src="assets/js/jquery-1.9.1.min.js"></script> <script type="text/javascript"> var htmlobjek; $(document).ready(function(){ $("#campaign").change(function(){ var campaign = $("#campaign").val(); $.ajax({ url: "aget.php", data: "campaign="+campaign, cache: false, success: function(msg){ $("#content").html(msg); } }); }); }); </script> </head> <body> <form method="post" name="form2" action="insert_report.php"> <label> … | |
I try to display a pdf document with code like this: <?php session_start(); if (empty($_SESSION['nip']) AND empty($_SESSION['password'])) { ?> <script type='text/javascript'> alert('You must login'); document.location='../../../login.php'; </script> <?php }else{ include_once '../../../config/core.php'; include_once '../../../config/functioncollection.php'; $kode_materi=antiInjections($_GET['id']); $querambildata=mysql_fetch_array(mysql_query("SELECT * FROM materi_tb WHERE kode_materi='$kode_materi'")); $file = "../../../filemateri/".$querambildata['url_materi']; $filename = $querambildata['url_materi']; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' … | |
excuse me, I want to make an application 8 puzzle with a algorithm such as the following video http://www.yourepeat.com/watch/?v=LkRuKHwElbk is there anything that can teach me? | |
I'm trying to make a puzzle solver with php code like this <?php $GoalState = array(0,0,0,0,0,0,0,0,0); $CurrentState = array(0,0,0,0,0,0,0,0,0); $ChildState = array(0,0,0,0,0,0,0,0,0); function GetGoalState($initialstate, $goalstate){ $total = 0; $GoalStateGanjil = array(1,2,3,8,0,4,7,6,5); $GoalStateGenap = array(0,1,2,3,4,5,6,7,8); for($i=0; $i<8; $i++){ for($j=$i+1; $j<9; $j++){ if($initialstate[$j] < $initialstate[$i] && $initialstate[$j] != 0) $total = $total … | |
excuse me, I'm trying to create a function to copy the array, but the function does not work, please help. thanks before <?php function CopyState($from, $to){ for($i=0; $i<9; $i++){ $to[$i] = $from[$i]; } } $a=array(1,2,3,4,5,6,7,8); CopyState($a,$b); echo $b[2]; ?> | |
I would like to create a sidebar like in the picture, but I do not know how to make it. How do I make it? | |
I need help to solve my problem in making a login system. why always when login is rejected, the rejection order that I made: "You are not authorized to access this page", but that when admins are not logged in, even though I have entered the correct username and password … |
The End.