The more I get into it the more I find that is questionable.
http://nancygailring.com/contact.fla
rec = "[email protected]";
serv = "php";
var fields_descriptions = Array("", Array("t1", "your_name", "Your Name:"),
Array("t2", "your_email", "E-mail Address:"),
Array("t3", "telephone", "Telephone:"),
Array("t4", "message", "Your Message:"),
Array("t5", "field_2", "E-mail:"), Array("t6", "field_3", "Address:"), Array("t7", "field_4", "fax:"));
function reset_txt(name, name2, value) {
path = eval(_target);
path[name2] = value;
this[name].onSetFocus = function() {
path = eval(_target);
if (path[name2] == value) {
path[name2] = "";
}
};
this[name].onKillFocus = function() {
path = eval(_target);
if (path[name2] == "") {
path[name2] = value;
}
};
}
for (i=1; i<=fields_descriptions.length; i++) {
reset_txt("t"+i, fields_descriptions*[1], fields_descriptions*[2]);
}
The submit button AS
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
for (i=1; i<_parent.fields_descriptions.length; i++) {
if (_parent[_parent.fields_descriptions*[1]]!=_parent.fields_descriptions*[2]) {
this[_parent.fields_descriptions*[1]]=_parent[_parent.fields_descriptions*[1]]+"&777&"+_parent.fields_descriptions*[2];
}
_parent.reset_txt(_parent["t"+i], _parent.fields_descriptions*[1], _parent.fields_descriptions*[2]);
}
this.recipient=_parent.rec;
i=undefined;
getURL("contact."+_parent.serv, "_blank", "POST");
}
Of all the things I found wrong about this site, the above AS seems wrong to me.
serv = “php”; does not specify a file.
getURL(“contact.”
The so-called “programmer” who bailed on this project obviously was not web savvy and did so many stupid things, this is just the latest thing I need to fix. The site owner is an artist & author. Luckily I like her work as otherwise the number of hours I have in this would amount to an astronomical bill.