Hello All,
I have this script in a form I downloaded from "Peopleforfun.com" It is a simple PHP email form and it works just fine - however - the form works regardless of whether it has a valid email address or not! Is there a way to add a validation script to the existing script to make it somewhat more functionable? Code is shown here:
I have this script in a form I downloaded from "Peopleforfun.com" It is a simple PHP email form and it works just fine - however - the form works regardless of whether it has a valid email address or not! Is there a way to add a validation script to the existing script to make it somewhat more functionable? Code is shown here:
Code:
this.onEnterFrame = function() {
if (nome.length>0 && address.length>0 && address2.length>0 && email.length>0 && comment.length>0) {
mc1.onRollOver = function() {
with (this) {
colChange = new Color(txt);
colChange.setRGB(0x6699cc);
gotoAndStop(2);
}
};
mc1.onRollOut = mc1.onReleaseOutside =function() {
with (this) {
gotoAndStop(1);
colChange = new Color(txt);
colChange.setRGB(0x1E3F66);
}
};
mc1.onRelease = function() {
nextFrame();
};
}
};
// this check the input text are filled, as you can see the submit button is disable until you fill all the forms