Page 1 of 1

form wont submit

Posted: Sun Feb 18, 2007 12:34 am
by psychotomus

Posted: Sun Feb 18, 2007 12:38 am
by Kieran Huggins
action=""

You need to specify the form's destination (even just "?" is OK if you want to point to the same page)

Posted: Sun Feb 18, 2007 12:42 am
by psychotomus
Kieran Huggins wrote:action=""

You need to specify the form's destination (even just "?" is OK if you want to point to the same page)
you do not. action="" points to itself.
but on a side note. i did try changing action="test.php" and it still did not work.

Posted: Sun Feb 18, 2007 12:47 am
by Kieran Huggins
wow - I didn't know that!

it's your: <input name="submit" type="button" value="Sort">

Should be: <input name="submit" type="submit" value="Sort">

Posted: Sun Feb 18, 2007 3:52 am
by nickvd
I always thought it was action="#" for the same page...

Fix these problems and we'll see if the form still doesn't work...

Posted: Sun Feb 18, 2007 4:27 am
by superdezign
:lol: That's not nice. Ignorance is bliss. :)

Besides, Keiran gave a valid solution.

Now for the million of ampersands and badly formatted table HTML.

And the only person I've heard say action="#" was feyd. Most servers support action="".

Posted: Sun Feb 18, 2007 5:02 am
by Mordred
superdezign wrote: Most servers support action="".
This is a client-side issue, it is the client that submits the form and must decide where to. (So I'd guess # is for compatibility with older browsers, although I've been omitting the action attribute for years and it's been working fine on the major three browsers.)

Posted: Sun Feb 18, 2007 5:12 am
by Kieran Huggins
Mordred wrote:...I've been omitting the action attribute for years and it's been working fine on the major three browsers...
8O

You learn something new every day!

Posted: Sun Feb 18, 2007 5:23 am
by superdezign
Mordred wrote:although I've been omitting the action attribute for years and it's been working fine on the major three browsers.
And backwards compatibility becomes less and less of an issue as time passes.

I thought the action was similar to links, as the server can interpret them as it's defined to...?