Forum Moderators: open

Message Too Old, No Replies

Submit Button that also closes the form

         

ricardo

3:31 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



I am working on an intranet site containing some forms and am wanting to make the forms more user friendly, at present the submit button is sending the form data to me on email using the mailto: method. This is fine but although the data is being sent, and internet explorer displays a message saying it is being sent over email, some users are clicking the submit button ultiple times

Is it possible to either close the form after it has been submitted or display a message saying something like 'This form has now been submitted'?

I am using Dreamweaver3 if that helps, and have tried using the onclick call javascript window.close() function.

Any help would be greatly appreciated!

TGecho

6:16 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



I would suggest looking into formmail. It's not too hard to set up, and there aren't any warning messages about them emailing you and all that.

mat_bastian

6:34 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



on submit, maybe you could send the user's browser an http header that sends them to a thank you page or something like that to let them know something happened.

mat_bastian

6:35 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



header( "Location: [yoursite.net...] );

ricardo

12:52 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Thanks for your help, unfortunately I'm new to all this intranet/internet business (hence the use of dreamweaver) and haven't a clue what you mean.

TGecho - I've downloaded the formmail.pl file but don't know what to do with it. Where does it go and how do I tell the form to use it?

mat_bastian - how do I send an http header?

sorry for being a braindonor!