How do I make this Web Form Button work?
-
I want to make a registration form with a check box that uses script to make sure that the check box is checked when the form is submitted, then send users to a welcome page(personalized, if possible). I'm using Microsoft Visual Web Developer 2010 Express. I have two bits of code from various sources, and I'm trying to fuse them using what little knowledge I have of coding/scripting, but it's just not working out for me. >.< Help me please. This is the code so far~ First, the checkbox/submit combo(copypasta from an old forum post): <form method="POST" action="--WEBBOT-SELF--"> <!--webbot bot="SaveResults" U-File="http://develop/dHTML/_private/fo… S-Format="TEXT/CSV" S-Label-Fields="TRUE" --> <p> <input type="checkbox" name="C1" value="ON"> <input type="submit" value="Submit" name="B1" onclick="if (!this.form.C1.checked) { alert('You must agree to our terms and conditions');return false;} else { return true }" > <input type="reset" value="Reset" name="B2"> </p> </form> Second, the default Registration button provided by Web Developer: <p class="submitButton"> <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Create User" ValidationGroup="RegisterUserValidationG… </p>
-
Answer:
Well, I think it is a jumble of script that will not do much as it is. My advice would be for you to go to the site of the provider where you are going to host your website and find the help/support pages, where it will tell you the correct syntax to post a form that will be returned to you as an email and send out the Welcome page on submission. Not all hosting sites use the same syntax or active files and until you get that right, so that you can get a return from a simple test form, you are complicating things by trying to make everything else work at the same time. Once you can get your form returned and receive the Welcome page you can progress to the script for the Submit and verification button. EDIT Ok, so do you have a file on your server that handles the incoming form, redirects the response and forwards an email to you with the form's contents in it?. If so what is it called because you need to refer to it in the POST method like this sample code <form action="/webformmailer.php" method="post"> <input type="hidden" name="subject" value="Submission" /> <input type="hidden" name="redirect" value="Formthankyoupage.html" /> EDIT 2 Sorry I have no experience with that software, but there are tutorials here http://www.youtube.com/watch?v=Tt_hqKVUPOc
Fluer Coran at Yahoo! Answers Visit the source
Related Q & A:
- How do I make a python web program that is on a ubuntu server allow access to the server?Best solution by Yahoo! Answers
- How can I make a dynamic web page in PHP?Best solution by Yahoo! Answers
- How do I make my web browser java compatible?Best solution by answers.yahoo.com
- How can I get my web cam to work on MSN?Best solution by Yahoo! Answers
- How do I make money on the web?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.