View Full Version : Automatically updating fields and submit buttons

12-13-2004, 05:26 PM
Hi, hope someone can help me.

I actually have 2 questions, and they are probably easy to the regular programmer, but that's not me...so

1- is it possible to automatically update a field on an asp form based on the user name entered on the first page? (I have a multi page form that submits to the database at the end of every page - going to a unique table, I want the user name to be submitted with every table without having the user enter it every time) Is there an easier way to do this?

2- I need to figure out how to disable a form if the user has submitted the form already. Any suggestions???

Thanks in advance!

12-13-2004, 11:03 PM
one option would be using cookies to store the data for a certain amount of time, however if there is sensitive data such as passwords or stuff that cold be abused (data protection act, computer misuse act etc) it should be encrypted

.. id just put as much as possible on one page, you shouldnt really need more than one page for a form

12-14-2004, 07:15 AM
Solved first problem.

Can't use cookies. Sorry, forgot to post that originally.

I'd like to modify my original question #2.

Lets say that when the user selects the submit button it records it in the db along with the rest of the form. Can't I use that field to do what I'm trying to do? Can't I redirect them to the next page if the submit button field is 'true' in the db? And apply this to multiple forms so that they will eventually be redirected to the form they left off at? Or on the first page they are directed to after log in, couldn't I run all the code on this page and direct them from there?

Does this make sense? Has anyone ever done this? :confused:

Thanks in advance.