DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to "not pass" unwanted form elements?

  1. #1
    Join Date
    Jul 2006

    How to "not pass" unwanted form elements?


    I am not even sure if this is possible or not with form that interact with server.

    This is my scenario: I have a form on my website that collects clients’ choices. Next, via server’s script, all client's choices are passed to me in form of e-mail.

    Some of my form elements are drop-down menus, some are different. The client may or may not to choose smthg.

    Having so many rows in my form I want to receive e-mail that shows only elements that client interacted with (MADE A CHOICE/SET VALUE). Anything else, for me is simply a garbage.

    Is there any way to set restriction in form, so the only passed to server elements are those that client had choose?

    Please help. Thank you in advance. Please post the answer/clue here.

  2. #2
    Join Date
    Jan 2005
    Well I"ve never tried it, but for the dropdowns you could try setting the default to one index value, and all the others to a different one than the 1st, but the same as each other. Not even sure it'll get by, but it might.

  3. #3
    Join Date
    Jul 2006
    Thank you. As I said I do not have experience (although I'm sure it's not a "racket science"), though I have some other ideas that I'd like to test out.

  4. #4
    Join Date
    Jul 2007
    I'm not 100% sure, but I think any form element that is DISABLED does not pass its value through to the target page. So - in theory, you could disable all form elements but have an OnClick Javascript event on each that ENABLES the element in question. The user activates each element they want to interact with and hopefully you get a clean set of results back!

Similar Threads

  1. Replies: 0
    Last Post: 04-11-2002, 06:48 PM
  2. Netscape Form Elements Inside DIV's
    By J.C. Tierney in forum Enterprise
    Replies: 0
    Last Post: 01-14-2002, 08:32 AM
  3. Re: Locking form elements?
    By Scott in forum Web
    Replies: 2
    Last Post: 11-02-2001, 12:13 AM
  4. ie cant handle form elements in layers
    By moritz moeller in forum Web
    Replies: 0
    Last Post: 10-03-2001, 06:45 AM
  5. Parsing Form Elements in a Loop
    By Brian in forum authorevents.mitchell
    Replies: 1
    Last Post: 10-16-2000, 09:24 PM

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center