SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Select forms

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whenever I input a select form into my webpage, the drop-down menu doesn't work...Here is the HTML i used:

    <SELECT NAME="list" SIZE="1">
    <OPTION VALUE="" SELECTED dt5.html>5</OPTION>
    <OPTION VALUE="dt10.html">10</OPTION>
    <OPTION VALUE="dt20.html">20</OPTION>
    </SELECT></FORM>

    I tried experimenting with OnChange="selected(form.list)" but that too made no difference, please can someone shed some light on the situation of why it wont ever goto the page I want, and just displays an error message on the status bar.

    Thanks, Hell.

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:

    <SELECT NAME="list" SIZE="1">
    <OPTION VALUE="" SELECTED dt5.html>5
    <OPTION VALUE="dt10.html">10
    <OPTION VALUE="dt20.html">20
    </SELECT></FORM>


    ------------------
    Karl Austin
    KDA Web Services
    "Everyone has a photographic memory. Some just don't have film."

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Or more correctly:

    <SELECT NAME="list" SIZE="1">
    <OPTION VALUE="dt5.html" SELECTED>5
    <OPTION VALUE="dt10.html">10
    <OPTION VALUE="dt20.html">20
    </SELECT></FORM>


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lord knows why i didn't spot the other error in it. I think I'm having one of my off days, it took me 3/4 of an hour to work out why Apache wouldn't work earlier.

    ------------------
    Karl Austin
    KDA Web Services
    "Everyone has a photographic memory. Some just don't have film."


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
  •