In its simplest form:
-----Index.html-----
<html>
<html>
<script type="text/javascript">
function getObj(){
if(window.XMLHttpRequest) return new XMLHttpRequest();
else if(window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
else return null;
}
function init(){
var xhr =...
In its simplest form:
-----Index.html-----
<html>
<html>
<script type="text/javascript">
function getObj(){
if(window.XMLHttpRequest) return new XMLHttpRequest();
else if(window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
else return null;
}
function init(){
var xhr =...
PHP is an excellent language with which to start. The same thing applies to Javascript. They follow basically the same syntax as C/C++, which is today's industry standard. Any C/C++ book will tell you to start with Javascript and/or PHP to learn the syntax of the language more easily. They...
$error needs to be declared globally, outside the 'if' statements. Each time, you are declaring $error inside the 'if' statements and each time the 'if' statement ends, the $error variable goes out of scope and deleted.
If you are not the forum owner, you can't do php. Use javascript. Also, if the forum does not allow javascript in there forum, you can't do that either.
Add to encryption page:
document.location = "myurl.com/viewable.html?pw=" + password;
Add to viewable page:
str = document.location;
str = str.split("?")[1];
str = str.split("=")[1'];
if(str = password)
{
go in
}
btw, javascript is not very safe. Use php wherever possible.