Professional Web Applications Themes

Auto Submitting Form Problem !! - PHP Development

I have a form with a drop down list.. When the user selects the value from the list I want it to refresh automatically, as if the user has pressed submit... I have named the form 'test' and added onchange="test.submit();" to the Select field.. as so : <select size="1" name="search" onchange="frmtest.submit();"> In HTML / ASP this works... In PHP it fails... Any Ideas ? Thanks...

  1. #1

    Default Auto Submitting Form Problem !!

    I have a form with a drop down list..

    When the user selects the value from the list I want it to refresh
    automatically, as if the user has pressed submit...

    I have named the form 'test' and added onchange="test.submit();"
    to the Select field.. as so :

    <select size="1" name="search" onchange="frmtest.submit();">

    In HTML / ASP this works... In PHP it fails...

    Any Ideas ?

    Thanks

    James Guest

  2. #2

    Default Re: Auto Submitting Form Problem !!

    James wrote:
    >
    > I have a form with a drop down list..
    > When the user selects the value from the list I want
    > it to refresh automatically, as if the user has pressed
    > submit...
    Don't do that. You may think it makes things easier for the user, and
    for some people it might, but for many people you will make the form
    hard to use, and for some people you are going to make it impossible to
    even use your form at all.

    So don't do that.

    However, if you really must, here is the Javascript (not PHP) that does it:

    [url]http://www.af-design.com/resources/javascript_locationbox.php[/url]

    In the future, please ask JavaScript questions in a JavaScript newsgroup
    (or just do a search -- the link above would have been the very first
    link returned if you had entered "javascript select submit" on Google).

    Brandon Blackmoor Guest

Similar Threads

  1. after submitting form go to page . . . .
    By rmstvns in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: November 7th, 02:31 AM
  2. Submitting form
    By flexdummy in forum Macromedia Flex General Discussion
    Replies: 17
    Last Post: February 3rd, 07:39 AM
  3. Use PDf fill in form in Website and submitting form info.
    By Alexandre_L_Eveille@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 0
    Last Post: August 3rd, 09:26 PM
  4. Submitting Form Var Problem
    By Ralph Freshour in forum PHP Development
    Replies: 1
    Last Post: October 31st, 02:27 AM
  5. Submitting form with a unique ID
    By James Brown in forum ASP.NET General
    Replies: 2
    Last Post: July 6th, 12:09 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139