Ajax Database check problem

Discussion in 'JavaScript' started by tekteker, Oct 30, 2010.

  1. #1
    Hi,

    I found a good JS + ASP code to check if a value is in database or not. This code is divided into three,

    HTML code,
    Javascript code,
    ASP code.

    HTML code includes a form which posts variable to ASP code with javascript. ASP code looks for variable in database and returns an answer. All this work good, no problem.

    I edited HTML code and put it in my current ordering form. So this form must be in an another form.
    Problem begins here. When i submit main form it do not work because mani form has a form validation javascript. I think i can solve this and need a programmer.

    Here is the scheme of not working code.

    form
    input name
    input email
    input address

    form
    input promotion code - check button
    /form

    input delivery date
    input card number

    /form

    submit button


    i must validate lots of input variables and add answer of promotion code javascript.
    i think a form in form can never work. i need a big help.
     
    tekteker, Oct 30, 2010 IP