I keep receiving several e-mails of the same thing and this has been increasing lately as visitors have been increasing.

Thanks for your help.

redux
—
2002-10-27T01:26:56Z —
#2

Darin, this is simple enough to do with javascript (with the obvious caveat that it won't work in non-javascript browsers and if the user has disabled javascript intentionally). all you need is an "onsubmit" part in your form's opening tag. here's a small example:

one word of caution, though: i don't know what your formCheck function does, but what if the check returns false ? does your page pop up a javascript alert or something, saying "you haven't filled in this or that" ?

in that case, we might need to modify the onsubmit code to only disable the submit button if the form check has been passed first.

to break it down, this is what it does: first, it runs formCheck. this will presumably return a true if the check was successful, or false if there was some problem (a compulsory field not filled in, or whatever). now, if the check returned true, javascript disables the submit button and lets the browser carry on with the form submission. if the check failed, however, the javascript will only execute "return false" which has the effect of telling the browser NOT to process the form as normal, i.e. not to proceed to linkadded.php

hope this was clear enough. let me know if it all worked.

Darin
—
2002-10-28T01:59:44Z —
#5

Well, my Internet connection is too fast for me to determine. When I click on the submit button, I don't have time to see if it gets disabled or not, the page changes right away.

I don't think it is working however, because I did get a object not supported error at one time, but couldn't get it to come up again.

Check it out for your self, feel free to submit the form, don't worry.

what this does is: after (hopefully) disabling the submit button, it will do a "return false", indicating to the browser NOT to process the form. this way you'll see if the button gets disabled properly or not, as your form won't jump to the next page.

Darin
—
2002-10-28T04:53:04Z —
#7

Thanks a lot for your help! I really appreciate it.

It worked like a charm.

redux
—
2002-10-28T09:58:12Z —
#8

anytime, mate...i love it when a plan works out (or whatever hannibal in the a-team always says)

creole
—
2002-10-28T18:18:42Z —
#9

Silly Brit...

"I love it when a plan comes together."

redux
—
2002-10-28T19:26:54Z —
#10

i'm german actually, but grew up in italy...and watched the a-team on the swiss french channel...so there creole

blonkm
—
2008-08-15T23:46:23Z —
#11

[QUOTE=redux;589526]cryptically enough, the name of your submit button is "B1".

That's because MS FrontPage makes buttons like that. The next button would be named B2.