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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Automatically updating fields and submit buttons

    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!

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    Thanks in advance.


  •  

    Posting Permissions

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