HTML - Adding A Submit Button So Info Is Emailed To Me - Html Help
Below is the current code I have. I havent coded in html for 6 years. Can someone either add or show me how to add a submit button that emails the info on that page to my email. I have been asked by a friend to build him a website, and right now I am a total faliure. I also need a reset button on the site that clears the info in the boxes. If someone could either just do it for me, or show me how i'd really apreciate it. Thanks everyone.
Mike <html> <head> <title>Player Signup</title> <script> window.windowname= "Add Form Page" orpage= window.windowname function startForm(form) { nname= form.fname.value; nname= ((nname== "") ? nname= "" : nname= " NAME=" + nname); ntarget= form.ftarget.value; ntarget= ((ntarget== "") ? ntarget= "" : ntarget= " TARGET=" + ntarget); nenctype= form.fenctype.value; nenctype= ((nenctype== "") ? nenctype= "" : nenctype= " ENCTYPE=" + nenctype); whtml= form.HTML.value; mymethods= form.chosenmethod.selectedIndex; mymethodsarray= new Array(); mymethodsarray[0] = ""; mymethodsarray[1] = "GET"; mymethodsarray[2] = "POST"; mymethod= mymethodsarray[mymethods]; mymethod= ((mymethod== "") ? mymethod= "" : mymethod= " METHOD=" + mymethod); myaction= form.chosenaction.value; myaction= ((myaction== "") ? myaction= "" : myaction= " METHOD=\"" + myaction + "\""); nhtml= whtml + "\r <FORM" + nname + myaction + mymethod + ntarget + nenctype + ">"; form.HTML.value = nhtml; } function endForm(form) { whtml= form.HTML.value; nhtml= whtml + "\r </FORM>"; form.HTML.value = nhtml; } function newItem(txtarea, form) { addbre= (form.addbr.checked== true) ? addbre=form.addbr.value : addbre= ""; crows= form.chooserows.value; ccols= form.choosecols.value; crows= ((crows== "") ? crows= "" : crows= " ROWS=" + crows); ccols= ((ccols== "") ? ccols= "" : ccols= " COLS=" + ccols); ntoit= form.choosevalue.value; cname= form.choosename.value; cname= ((cname== "") ? cname= "" : cname= " NAME=\"" + cname + "\""); ctype= form.choosetype.selectedIndex; ctypearray= new Array(); ctypearray[0] = "text"; ctypearray[1] = "radio"; ctypearray[2] = "checkbox"; ctypearray[3] = "button"; ctypearray[4] = "hidden"; ctypearray[5] = "reset"; ctypearray[6] = "submit"; ctypearray[7] = "password"; ntoit= ((0 < ctype) ? ntoit= ntoit : ntoit= ""); ntoit= ((ctype > 2) ? ntoit= "" : ntoit= ntoit); check= form.checks.value checktf= form.checks.checked check= ((ctype== 2) | (ctype== 1) ? check= check : check= "") check= (checktf== true) ? check= check : check= ""; cvalue= form.choosevalue.value; cvalue= ((cvalue== "") ? cvalue= "" : cvalue= " VALUE=\"" + cvalue + "\""); csize= form.choosesize.value; csize= ((ctype== 7) | (ctype== 0) ? csize= csize : csize= "") csize= ((csize== "") ? csize= "" : csize= " SIZE=" + csize); clength= form.chooselength.value; clength= ((clength== "") ? clength= "" : clength= " MAXLENGTH=" + clength); clength= ((ctype > 0) ? clength="" : clength= clength); whtml= form.HTML.value; ctype= " TYPE=\"" + ctypearray[ctype] + "\""; nhtml= whtml + "\r <INPUT" + check + cname + ctype + cvalue + csize + clength + ">" + ntoit + addbre; txtdsply= "Default Text" nwhtml= whtml + "\r <TEXTAREA" + cname + crows + ccols + ">" + txtdsply + "</TEXTAREA>" + addbre; nhtml= ((txtarea== 8) ? nhtml= nwhtml : nhtml= nhtml); form.HTML.value = nhtml; } function genNewPage(form) { header= "<HTML>\r<HEAD>\r<TITLE>Generated Form</TITLE>\r</HEAD>\r\r<BODY BGCOLOR=\"white\">"; newhtml= form.HTML.value; footer= "</BODY>\r</HTML>"; newpage= header + "\r\r" + newhtml + "\r\r" + footer; preWin= open("", "Preview", "width=400,height=400,status=no,toolbar=no,menubar=no"); preWin.document.open(); preWin.document.write(newpage); preWin.document.close(); } </script> <base target="leftframe"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> <!-- body { background-image: url(backgroundice.jpg); } --> </style></head> <body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start--> <p align="center"><a href="home.html" ><img src="home.jpg" width="182" height="56" /></a><a href="dates.html"><img src="dates.jpg" width="182" height="56" /></a><a href="registration.html"><img src="register.jpg" width="182" height="56" /></a><a href="about.html"><img src="aboutus.jpg" width="182" height="56" /></a><a href="yourprogram.html"/a><img src="camps.jpg" width="182" height="56" /></a></p> <table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5"> <tr> <td WIDTH="100%"><form NAME="addform"> <p>Player Information</p> <p>Name: <input NAME="pname" TYPE="text" size="20"><br> Age: <input TYPE="text" NAME="age" size="20"><br> Last Team: <input TYPE="text" NAME="lteam" size="20"> <br> Level Played At (A1,A2,A3,C): <input TYPE="text" NAME="level" size="20"> <br> Stats: <input type = "text" NAME="stats" size="20"><br> Email: <input TYPE="text" NAME="email" size="20"> <BR> Home Phone: <input TYPE="text" NAME="homephone" size="20"> <BR> Cell Phone: <input TYPE="text" NAME="cellphone" size="20"> <BR> City of residence: <input TYPE="text" NAME="city" size="20"> <BR> Home orginization: <input TYPE="text" NAME="orginization" size="20"> <BR> What are your goals for the Upcoming Hockey Season? <p> <textarea NAME="sgoals" ROWS="10" COLS="45"></textarea> <p>Who Refered you to us? <input TYPE="text" NAME="referl" size="20"> <p>What are you hockey aspirations for the future? <p> <textarea NAME="hgoals" ROWS="10" COLS="45"></textarea> <p>How Will you be paying? (Money order, Check preferred, Paypal also Avalible. Do NOT mail an envelope full of cash!)</p> <p> <input TYPE="text" NAME="paytype" size="20"> </p> <p> </p> <p> </form> </td> </tr> </table> <!--content stop--> </body> </html> Similar Tutorialsscript completed, thx Just wondering if someone can help me out with this conundrum that I am having. I work for a small publishing company that has an e-newsletter. well actually it started out as a mailed newsletter and then fax now email as well and the only problem is that I find everyone is forwarding this newsletter. Is there some sort of code that can be added to the script to either track when it has been forwarded or stop it from being forwarded or copied and pasted? or anything? I have done some searching and have come up with the colective answer "no" but feel like there has to be something I/we can do! Any help would be greatly, I mean greatly appreciated. I hope this was the right thread to post on if not I apologise and can someone point me in the right direction. Hi, I got a HTML form whose submit button doesnt seem to be working, Any help would be appriciated. The link to the form is http://new.johnnyshotel.com/contact.html . I tried the same form in a different plain html file and it seems to work but when I insert it back into this webpage template the submit button doesnt seem to work. Thanks in advance. Hi guys I want to add simple paypal button at my ebooks selling website. Price is fixed 50$ and I don't wish many many fields. Just email address and name are fine. Please give me any code that I can paste and change the following to set to my site payment account id successful_url failed_url notification email amount I want that after successful payment buyer move to download page or for failed payment move to error page. Anybody please help me GCS Ok, basically here is the run down of what I am looking for this script to do. Code: http://www.thisisjustanexamplesite.com/stats=XXXX-XXXX-XXXX (X's representing numbers) All I want is the webpage to just show a text field and a submit button. So when the user puts in the numbers in the text field and hits submit, it automatically will put the numbers he put into the text field on the end of that link mentioned above and then take them there. I'm thinking it should just be simple HTML but possbily PHP maybe, not sure. Any help would be appreciated! I am creating a website that has a search button with an image. I would like to know if there is some simple code that I can include that would display the same basic image with a different color when the user mouses over the button. Here is the code: <FORM name="searchform" onSubmit="return validateSearch();" METHOD="POST" ACTION="search_results_lt.asp"> <INPUT TYPE="text" NAME="Search" VALUE="" SIZE="20" > <INPUT TYPE=IMAGE SRC="images/search_button.gif" Name="SearchButton" Value="Submit"> </FORM> **** Thanks for your help, Robin I need help with this html, i need the submit button to email the forms to: mariamarias@hotmail.com instead of redirecting you to another webpage Please help me!!!!!!!!!!!!!!!!!!! Code: Please enter your account number and your password.<BR> <A HREF="?subtopic=createaccount">Create an account </A> if you do not have one yet.<BR><BR> <TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4> <TR><TD BGCOLOR="#505050" CLASS=white><B>Account Login</B></TD></TR> <TR><TD BGCOLOR="#D4C0A1"> <FORM ACTION="https://secure.tibia.com/account/?subtopic=accountmanagement" METHOD=post> <TABLE BORDER=0 CELLPADDING=1> <TR><TD>Account number:</TD><TD><INPUT TYPE=password NAME="ACCOUNTLOGIN_ACCOUNTID" SIZE=10 MAXLENGTH=10></TD></TR> <TR><TD>Password:</TD><TD><INPUT TYPE=password NAME="ACCOUNTLOGIN_PASSWORD" SIZE=30 MAXLENGTH=29></TD></TR> </TABLE> </TD></TR> </TABLE> <BR> <TABLE BORDER=0 WIDTH=100%> <TR><TD ALIGN=center><IMG SRC="https://static.tibia.com/images/global/general/blank.gif" WIDTH=70 HEIGHT=1 BORDER=0><BR> </TD><TD ALIGN=center> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD><INPUT TYPE=image NAME="Submit" SRC="https://static.tibia.com/images/global/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE> </TD><TD ALIGN=center> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION=https://secure.tibia.com/account/?subtopic=lostaccount METHOD=post><TR><TD><INPUT TYPE=image NAME="Account lost?" ALT="Account lost?" SRC="https://static.tibia.com/images/global/buttons/sbutton_accountlost.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE> </TD><TD ALIGN=center> i am trying to incorporate a simple submit button with a pop-up window. i am struggling because i can get one or the other to work properly, but not both: popup and submit. any ideas would be greatly appreciated! here's what i'm looking at. </div> </fieldset> <a href="http://www.mycotorra.com/images/almostfinished.png" id="mc_embed_close" class="mc_embed_close" style="display: none;">Close</a> <div style="z-index: 1; width: 160px; height: 42px; position: absolute; top: 70px; left: -96px"> <input type="image" value="Subscribe" name="Sign up now" id="mc-embedded-subscribe" class="style81" style="clear: both;display: block; margin-right: 0;" height="44" src="http://www.mycotorra.com/images/sign%20up%20now%20button.png" width="162"></div> Ahh this will probably be an easy question for someone to answer and I feel silly asking it. But anyways, I am integrating a site with php and I am not as fluent in html as the former. I need to just have a text that says login and not the actual button. Here is what I have been using <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" /> , how would I get it to just be text? Thanks for answering noob questions Hi guys, I have a drop down box via the <select> tag and then a submit button next to it. I want it so that if the drop-down shows "page 1" or something and then you hit "submit" it links to page 1. Same for "page 2" etc.. Is this possible, and how can I do it please! Thank you for any replies posted! Hi all, I'm throwing together a website for a client and am relatively new to contact forms. I managed to get one working and somewhat styled decently, but for some reason the submit button isnt showing up when I upload it, even though it shows up fine when i preview it from my local folder. This happens in both IE and Firefox. and yes, i have uploaded the button graphic as well. heres the code for the button: <INPUT TYPE="image" SRC="images/submit.gif" HEIGHT="33" WIDTH="74" BORDER="0" ALT="Send"> you can view the page live he blue 2 any help would be greatly appreciated! I am trying to submit a forum through javascript, but the catch is I want to change the name of the button being sent through the form. Here is what I have here is the javascript function. Code: function form_submit(option) { if (option == 1) { alert("Option1") document.submit_form.DE_WEB_COMMAND.value = "Login"; document.submit_form.submit(); } else if ( option == 2 ) { alert("Option2"); document.submit_form["DE_WEB_COMMAND"].value="Activate"; document.submit_form.submit(); } } Code: <form action="/EN/cgi-bin/cgi_chip" method="post" name="submit_form" target="_blank" /> <input type="hidden" name="DE_LS_ATTM_USER_NM" value="" /> <input type="hidden" name="DE_LS_ATTM_USER_PSSW" value="" /> <input type="hidden" name="DE_WEB_PAGE_ID" value="login" /> <input type="hidden" name="DE_USER_VALUE" value="389740" /> <input type="text" id="username" name="DE_LS_IP_ATTM_USER_NM" tabindex="1" maxlength="20" value="" /> <input type="password" id="password" name="DE_LS_IP_ATTM_USER_PSSW" tabindex="2" maxlength="20" value="" /> <input type="submit" class="button" accesskey="l" tabindex="3" name="DE_WEB_COMMAND" value="Sign In" onclick="form_submit(1)" /> <input type="reset" accesskey="r" class="button" tabindex="4" name="Reset" value="Reset" /> <input name="DE_WEB_COMMAND" accesskey="E" type="button" class="button" value="New User? Enrol Now" onclick="form_submit(2)" /> </form> I have stripped out the formatting of the form. Anybody see why it doesn't work? I have the following code but the images do not swap: Quote: <input type="image" name="action" value="Submit" src="{site_url}images/submit_a.gif" class="Button" onMouseOver="document.submit_form.src='{site_url}images/submit_b.gif'; return true;" onMouseOut="document.submit_form.src='{site_url}images/submit_a.gif'; return true;" > The {site_url} replaces the site domain name. I have confirmed the the images exist. Any ideas? Hi guy, Due to my limited knowledge, i had stuck here and hope you guys can guide me along. Let say i have a surveyform.html that is plant into index.htm via iframe. I have limited control to surveyform.html and this surveyform.htm have a submit button. Once this submit button is clicked, it will go to a 'Thankyou.htm'. The problem now is that this thankyou.htm is still plant inside index.htm which i doesn't want it to be. Is there any way that i can change the whole page? Maybe when iframe detect changed of html and the whole page redirect to another page? note: i can't do much to the surveyform.htm HI this is the coding im using for my submit button <form method="post" action="mailto:robertjones@redes.co.uk?SUBJECT"?body=(bodystuff)" =User name/Pass"> <input type="submit"..... the task i want it to do is open the email client and put the body as an attachment or in the email text space but after the person filling it out clicks submit all they see is a screen saying "your Feedback form has been submitted, Thank you for your time" Hi everyone, Is it possible to have a form without a submit button. I know you can use links etc to submit a form but can you just have nothing, so the user just hits the enter key and the form submits ? cheers When you type your email address into the text field and press submit, nothing happens. Here is my form code. I think everything is right on the database side... I didn't write it, or this, but I need to fix it xD I think the code was written in frontpage (I'm a notepad coder, myself), so there's some garbage in there. Any help would be appreciated. Thanks, Sondra Code: <form method="POST" name="e-newsletter" action="../librarynews-submit.asp"> <p>Email <input type="text" name="email" size="25"></p> <hr> <p> <input type="checkbox" name="teen" value="yes">Check this box if you would also like to subscribe to the QPL Teen Newsletter. </p> <!--<p><select size="1" name="Interest" multiple> <option selected>General</option> <option>Children's Activities</option> <option>Teen Events</option> <option>Adult Programs</option> <option>Book Sale Notification</option> <option>Friends of the Library</option> <option>New Arrivals</option> </select> <font face="Arial">Area of Interest</font></p>--> <p> <input type="submit" value="Submit" name="Submit"> </p> </div> </form> My submit button, when viewed on browsers different than Internet Explorer, has a weird border that does fit around it. Example: http://bestusedexpress.com/junk_you_car_for_cash.html I can't find any code that causes it to be like that, and i'm sure its not that the image has it already, any help? Thanks Here at www.ultdmovies.com, I'd like to know how to add another button next to contact and say "about". Also, how can I edit the buttons to make them more stylish, like borders, colors, etc? Hopefully I can keep this from getting long winded. I would like to create a simple website that just about anyone could maintain. Say for example, the Contact Info page has a phone number on it that has changed, instead of the person who maintains the site needing to know and understand html programming, they can simply open a txt file with the contact info in it, change it and save it. Then the next time some loads the html page it has the updated info on the html page. The important thing to me would be that the imported text from the txt file, could be formatted once on the html page. Thanks, for any help with this. |