holmedwa04 Posted June 20, 2006 Share Posted June 20, 2006 Hi,I have made a form on my website that allows users to submit information to a guestbook, it sends me an email with the information they have submitted, then I will manually add it to the guestbook so I can moderate it.How do I create a Thank - You page for it to go to when the user clicks Submit Post?This is the code for the form...<FORM METHOD=POST ACTION="mailto:shapemakingclub@btconnect.com?subject=Guestbook Post" ENCTYPE="text/plain"><table border="0" width="100%"><tr><td height="40"><font size="2">Name / Nickname:</td></tr><tr><td height="40"><INPUT TYPE="text" NAME="Guests Name" SIZE="30"></td></tr><tr><td height="40"><font size="2">Post:</td></tr><tr><td><script type="text/javascript"><!--var pcount = 0;var ncount = 0;// --></script><TEXTAREA NAME="Guests Post" ROWS="10" COLS="120" style="font-family: arial;" onfocus="if (pcount == 0) {this.value='';} pcount++;">Add Your Message Here.</TEXTAREA></td></tr><tr><td height="40"><center><INPUT TYPE="submit" VALUE="Submit Post"> <INPUT TYPE="reset" VALUE="Clear Post"></center></td></tr></form></table>Please can someone help me out, because I can't use CGI scripts. Many Thanks Edward Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted June 20, 2006 Share Posted June 20, 2006 Well the I would use php but since you can use that, you will need to use some weird lanuage... I think there is one call ISML or something (maybe it's only a United Online thing) ...There are alot of hosts that are free and support CGI languages... google it.Other wise I host websites... Link to comment Share on other sites More sharing options...
pulpfiction Posted June 20, 2006 Share Posted June 20, 2006 Try doing this....<INPUT TYPE="submit" VALUE="Submit Post" onclick="window.location='http://www.google.com';"> Link to comment Share on other sites More sharing options...
pulpfiction Posted June 20, 2006 Share Posted June 20, 2006 One more thing in the end of your code ........</center></td></tr></form></table>Table tag should be closed before the form tag. </tr></table></form> Link to comment Share on other sites More sharing options...
scott100 Posted June 20, 2006 Share Posted June 20, 2006 I have made a form on my website that allows users to submit information to a guestbook, it sends me an email with the information they have submitted, then I will manually add it to the guestbook so I can moderate it. Like pulpfiction said an window.location is enough for this.A point for you to consider is that by using mailto you assume that the user has a email program installed on their machine, if they don't it wont work Plus i find that this only works if i submit a page with Internet Explorer through Outlook, if i open Firefox or Opera and try submitting through Outlook it fails.See also the Mailto Myth Link to comment Share on other sites More sharing options...
justsomeguy Posted June 20, 2006 Share Posted June 20, 2006 That's a good link. I had actually never seen mailto in a form action until I came here and saw people having problems with it.If you are on a server that will not let you run server-side software, then you just need to accept that there are a lot of things (actually, most things) that you simply won't be able to do, and sending mail is one of them. Web hosts are so cheap that there's not really much of an excuse not to have a server that lets you do what you need to do. Link to comment Share on other sites More sharing options...
scott100 Posted June 20, 2006 Share Posted June 20, 2006 I had actually never seen mailto in a form action until I came here and saw people having problems with it.There's an example of it on the HTML Forms Page: http://www.w3schools.com/html/tryit.asp?fi...yhtml_form_mailI didn't notice any warnings on it's downsides though newbies would be unaware of it's flaws... Link to comment Share on other sites More sharing options...
justsomeguy Posted June 20, 2006 Share Posted June 20, 2006 Opera owns everything. Submit that form and see what it says.But I agree, mailto is not a solution, and they shouldn't be teaching it. At best it's a cheap workaround, and at worst it's useless. Link to comment Share on other sites More sharing options...
scott100 Posted June 20, 2006 Share Posted June 20, 2006 Opera owns everything. Submit that form and see what it says.But I agree, mailto is not a solution, and they shouldn't be teaching it. At best it's a cheap workaround, and at worst it's useless.<{POST_SNAPBACK}> It came up with new account wizard so i backed off What did happen? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 20, 2006 Share Posted June 20, 2006 I just like the message where it says that you are submitting via email and it asks if you want to send it anonymously or not.But I don't have an email account configured with Opera here either. But at home, Opera is my primary email client, as well as my primary browser, primary Bittorrent client, primary IRC client, primary RSS client... Link to comment Share on other sites More sharing options...
holmedwa04 Posted June 21, 2006 Author Share Posted June 21, 2006 Try doing this....<INPUT TYPE="submit" VALUE="Submit Post" onclick="window.location='http://www.google.com';"><{POST_SNAPBACK}> Wow, you are a complete genius, if only you knew how long I have been trying to get this to work.Thankyou ever so much, I can do so much more stuff now, obviously there is the drawback that was mentioned by some about they might not have an email program and also, even if it didn't work it would still say thankyou, post has been recieved.But... don't you just think it is so much nicer when you have filled out a form for it to say Thank-you?With Many Thanks Edward.P.S. Gee, im glad I signed up to these forums. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now