View Full Version : After Validation and clicking send going to other url

09-26-2009, 06:28 AM
I have a flash form, which when i click the send button it runs a validation on two of the fields. If the fields are correct it, obviously processes the info, and if not, it forces you to correct before submitting. What i need it to do is after the validation is oked, and the user clicks send that it goes to another url in a seperate window. I added it to the release of the send, but then it goes to the new url no matter if the data is validated or not. Please advise...


09-30-2009, 06:50 PM
You need to seperate the validation and redirect functions. So if you have a function validate(), it should return true if correct and false if not.

valid = validate(variables);
if (valid === true) {
redirect functions
else {
display error functions