Onemorelevel Posted June 10, 2009 Share Posted June 10, 2009 Hi all, I plan to work on a MMORPG For the next few years, but I need a little help on something for the webpage. I made a checkbox, and I have a Submit and a Back button. I have a few questions about this. How do I make the submit button be pale, and unclickable, until they check the box to agree to the terms of agreements?How do I make the website go back to the page before, in they click the back button?How do I make the website go forward, (onto the next page/step) if they click submit?How do I make it so that when they type in the username and password, it will send it to an email?For whoever helps me, thanks! Link to comment Share on other sites More sharing options...
smerny Posted June 10, 2009 Share Posted June 10, 2009 do you have php? Link to comment Share on other sites More sharing options...
smerny Posted June 10, 2009 Share Posted June 10, 2009 As for disabling the submit button... that would be javascript <form name="yourform" action="nextpage.php" method="post"><input type="checkbox" onClick="document.yourform['submitform'].disabled =(document.yourform['submitform'].disabled)? false : true"><input type="submit" id="submitform" name="submitform" value="Submit" class="submitform" disabled></form> this would also get your next page by clicking the submit button... because the action of the form is the next page. Link to comment Share on other sites More sharing options...
Onemorelevel Posted June 10, 2009 Author Share Posted June 10, 2009 Can I use Javascript, even if I save in a .HTML format through notepad? Link to comment Share on other sites More sharing options...
vytas Posted June 10, 2009 Share Posted June 10, 2009 Yes you can. Link to comment Share on other sites More sharing options...
Natechs Posted June 10, 2009 Share Posted June 10, 2009 JavaScript is processed by the browser. So yes you can. Link to comment Share on other sites More sharing options...
Onemorelevel Posted June 10, 2009 Author Share Posted June 10, 2009 Awesome guys, thanks alot. I might stick around here :)P.S. I still need help with the email thing. Link to comment Share on other sites More sharing options...
RainsMirage Posted June 10, 2009 Share Posted June 10, 2009 What help with email? how to make the link for it or something else. for the code to make an email work you need this: <a href="mailto:blah@blah.com">My email</a> Link to comment Share on other sites More sharing options...
Onemorelevel Posted June 10, 2009 Author Share Posted June 10, 2009 I want the stuff people type in the boxes, and when they click submit, I want the info to be sent to the email. Link to comment Share on other sites More sharing options...
chibineku Posted June 10, 2009 Share Posted June 10, 2009 In the <form> tag, I think you just put :action="mailto:whatever@your.addressis"And you can optionally include stuff to format the e-mail, like CCs, Subject, etc.edit: check out this page Link to comment Share on other sites More sharing options...
Onemorelevel Posted June 10, 2009 Author Share Posted June 10, 2009 That almost works, the only problem is that, I need it to be submitted as if you were signing up for something, if i do it the way you said, it just tells them that it is sending to an email, and makes the person go through a long process. Link to comment Share on other sites More sharing options...
Ingolme Posted June 10, 2009 Share Posted June 10, 2009 You'll need a server-side language such as PHP to do the job. W3Schools has a tutorial on how to make a mail form, please check it out before asking more questions. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.