107 users online (1 members and 106 guests)  

  Results 1 to 2 of 2


  1. Required Form Fields    Forum: Javascript Forum
    Replies: 1
  2. Replies: 1
  3. Dynamic form fields    Forum: Website Scripts Forum
    Replies: 1
  4. Populate fields when checkbox selected    Forum: Javascript Forum
    Replies: 0
  5. Replies: 1
  1. #1
    pablo's Avatar
    New User

    Join Date
    Jun 2002

    Sending selected form fields

    I have created a form in which it is necessary to have a field called codeword to activate an encoding script. I then want to send the contents of another field within the same form to a database WITHOUT sending the 'codeword' variable. I cannot include a simple hidden field with a default for 'codeword' because that creates faults within the script. Is there a way of sending selected form fields only? Hope someone can help.

  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    Hello mate.

    Erm...it depends

    Your best bet would be to play with the script that the form is submitting to. HTML forms are too dumb to do clever stuff.

    To get around things like before, I have used the following -

    Querystring in the form - action="script.php?select=oranges"

    Separate forms, with each having its own submit button. This is useful if you only want to send a certain section, but it means if you need to send two or more sections you have to start using JavaScript to submit. Ugleee.

    If you need anything more definate, then try posting some sample code for us to look at.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

Tags for this Thread