Strange form problems

P

Peter Rooney

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
 
B

Brynn

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




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

Brynn
www.coolpier.com

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!
 
P

Peter Rooney

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
 
B

Brynn

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

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

Brynn
www.coolpier.com

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top