Results 1 to 2 of 2

Thread: PHP Form

  1. #1
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Question PHP Form

    hello everyone!

    i have a php feedback form on my website. this form has drop-down select box on it. i was wondering if there was a way to cause an alert box to appear if a certain option is selected.
    Last edited by kaos; 08-25-2009 at 08:53 PM.

  2. #2
    Join Date
    May 2008
    Posts
    144
    Thanks
    6
    Thanked 11 Times in 11 Posts

    Default

    yes there is:
    Code:
    <select onChange="if(this.value='my alert'){alert('Hey!')}">
    <option value="something">Choice One</option>
    <option value="something else">Choice Two</option>
    <option value="my alert">Choice Three</option>
    </select>
    cheers

  3. The Following User Says Thank You to thenajsays For This Useful Post:

    kaos (08-25-2009)

Bookmarks

Posting Permissions

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