Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    After Validation and clicking send going to other url

    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...

    Thanks

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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
    }
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •