www.webdeveloper.com
Results 1 to 5 of 5

Thread: Emailing a form.

  1. #1
    Join Date
    Feb 2008
    Posts
    12

    Question Emailing a form.

    Okay so I have a form. I use the post method and it only sends two of the fields. I know the problem. It's becasue some of the fields are disabled. My quesiton is: Is there a way to enable all of the fields before actually sending the form and then changing them right back so that the user cannot change any of the information? I am sure there is a way. I figure it'll look something like this.

    Code:
    <input type="button" name=Submit Value="Submit" onClick="Sned();">
    and in the head will have

    Code:
    function send() {
    document.form.fields.element = enable;
    Submit();
    document.form.fields.element = disable;
    }
    Any help on this subject will be greatly appreciated.

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,261

    Lightbulb Consider this ...

    How about in a validation function, checked just before the final submission,
    you write the disabled information to a special hidden text field.
    That way you don't have to modify the disabled information status at all
    and the information sent will be controlled by you collecting the information separately.

  3. #3
    Join Date
    Feb 2008
    Posts
    12
    You have saved me many times. Thank you again. I really appreciate it.

  4. #4
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,261
    No problem ... glad I was able to suggest something that works for you.

    Good Luck!

  5. #5
    Join Date
    Feb 2008
    Posts
    12
    I used a field like this and it gives me an error.

    [CODE]<input type="hidden" name="submitinfo">[CODE]

    Although I don't have enough time to look at it now, I am going to check the function that I made to send the info to it, after every update of the form. That may be written wrong of have some error. Thank you for all the help. I am sure I will ask more on down the road.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles