updating form values without submit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • b

    updating form values without submit

    This seems very simple, but I'm not sure how to do it. Lets say that I
    have
    a form with two select boxes, call them Colours (red, orange, yellow)
    and Items (contents depend on colour selected). If the colour is
    changed from orange to yellow, I want the second select box to change
    it's contents from "Oranges, etc" to "Bananas, etc" without the submit
    button being pressed. How do I do this?

  • sharma

    #2
    Re: updating form values without submit

    Use javascipt events like onchange(), OnSelect () some thing like that..

    Comment

    • b

      #3
      Re: updating form values without submit

      Ok, thanks. I knew that it was possible to do these types of things,
      but had not found an example in any PHP book I have read. Found this
      website for anyone else interested.



      Comment

      • Jerry Stuckle

        #4
        Re: updating form values without submit

        b wrote:[color=blue]
        > Ok, thanks. I knew that it was possible to do these types of things,
        > but had not found an example in any PHP book I have read. Found this
        > website for anyone else interested.
        >
        > http://www.phpfreaks.com/javascript_.../page/evnt.htm
        >[/color]

        You didn't find it in a PHP book because you can't do it in PHP.

        PHP is server-side, while listbox selection is client-side.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        Working...