I have a .js
file with these two functions:
function download510(form) {
if (form.pass.value=="tokheim") {
location="../pdf/quantium-510.pdf"
} else {
alert("Invalid Password")
}
};
function download410(form) {
if (form.pass.value=="tokheim") {
location="../pdf/quantium-410.pdf"
} else {
alert("Invalid Password")
}
};
And two .php
files with:
1:
<form name="login">
<input name="pass" type="password">
<input type="button" value="Download" onClick="download510(this.form)">
</form>
2:
<form name="login">
<input name="pass" type="password">
<input type="button" value="Download" onClick="download410(this.form)">
</form>
Only the first function, download510(form)
, works. Any ideas would be much appreciated.