Strange form problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Rooney

    Strange form problems

    Hi,

    I have a form that allows you to do search, for each record found it
    populates the form fields with the data from the database and creates
    page sets for next and previous, now for the stange part, when the first
    record appears if i press update the values are passed no problem,
    however if I follow the link to the next record even though the data is
    populated in the fields (and when you view the source the data is there
    in the input fields) when I press submit the data isn't being passed?

    I have no idea as to the reason so I am hoping somebody here may have

    Cheers
    Peter



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Ray at

    #2
    Re: Strange form problems

    Code? Sample? How do you know the data isn't being passed?

    Ray at work

    "Peter Rooney" <peter@whoba.co .uk> wrote in message
    news:O9M3yg33DH A.1804@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hi,
    >
    > I have a form that allows you to do search, for each record found it
    > populates the form fields with the data from the database and creates
    > page sets for next and previous, now for the stange part, when the first
    > record appears if i press update the values are passed no problem,
    > however if I follow the link to the next record even though the data is
    > populated in the fields (and when you view the source the data is there
    > in the input fields) when I press submit the data isn't being passed?
    >
    > I have no idea as to the reason so I am hoping somebody here may have
    >
    > Cheers
    > Peter
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • Brynn

      #3
      Re: Strange form problems


      Are you saying you want the data 'update' to be submitted even if you
      click the next record link?




      On Tue, 20 Jan 2004 09:09:42 -0800, Peter Rooney <peter@whoba.co .uk>
      wrote:
      [color=blue]
      >Hi,
      >
      >I have a form that allows you to do search, for each record found it
      >populates the form fields with the data from the database and creates
      >page sets for next and previous, now for the stange part, when the first
      >record appears if i press update the values are passed no problem,
      >however if I follow the link to the next record even though the data is
      >populated in the fields (and when you view the source the data is there
      >in the input fields) when I press submit the data isn't being passed?
      >
      >I have no idea as to the reason so I am hoping somebody here may have
      >
      >Cheers
      >Peter
      >
      >
      >
      >*** Sent via Developersdex http://www.developersdex.com ***
      >Don't just participate in USENET...get rewarded for it![/color]

      Brynn


      I participate in the group to help give examples of code.
      I do not guarantee the effects of any code posted.
      Test all code before use!

      Comment

      • Peter Rooney

        #4
        Re: Strange form problems

        Thanks for the replies guys, I did sort it, what happened was I passed
        some search criteria across from one page to another this produced a
        paginated set of results which populated form fields, if I submitted the
        form straight away the data was passed ok, if I followed the next link
        however to page two and tried to submit the form it just passed the
        parameters that were used to search on and not what populated the
        fields, what I did in the end was to change the form field names so that
        they differed from the field names used in the original page, I hope
        this makes sense.

        Ray in answer to your question, I used a response.write to show what was
        being submitted.

        Many thanks




        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        • Brynn

          #5
          Re: Strange form problems


          That is probably the best way ... I don't trust javascript to work
          much, but if in a controlled environment, you could also use onClick
          to submit your form when clikcing the next record link ... to make
          sure the updated record gets submitted ... and keep the next record
          id, or whatever data in a hidden field.

          Brynn

          On Wed, 21 Jan 2004 00:59:24 -0800, Peter Rooney <peter@whoba.co .uk>
          wrote:
          [color=blue]
          >Thanks for the replies guys, I did sort it, what happened was I passed
          >some search criteria across from one page to another this produced a
          >paginated set of results which populated form fields, if I submitted the
          >form straight away the data was passed ok, if I followed the next link
          >however to page two and tried to submit the form it just passed the
          >parameters that were used to search on and not what populated the
          >fields, what I did in the end was to change the form field names so that
          >they differed from the field names used in the original page, I hope
          >this makes sense.
          >
          >Ray in answer to your question, I used a response.write to show what was
          >being submitted.
          >
          >Many thanks
          >
          >
          >
          >
          >*** Sent via Developersdex http://www.developersdex.com ***
          >Don't just participate in USENET...get rewarded for it![/color]

          Brynn


          I participate in the group to help give examples of code.
          I do not guarantee the effects of any code posted.
          Test all code before use!

          Comment

          Working...