Not logged in? Join one of the bigest Law Forums on the Internet! Join Now!   Latest blog post: Research Law Professors Before Choosing Law Schools

Advertisments:




Sponsor Links:

Discount Legal Forms
Discounted Legal Texts


How do I make this Web Form Button work?

Dealing with a class action? Discuss it here

How do I make this Web Form Button work?

Postby siwili » Thu Mar 01, 2012 2:42 am

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>
siwili
 
Posts: 15
Joined: Thu Mar 31, 2011 4:15 pm
Top

How do I make this Web Form Button work?

Postby wendlesora » Thu Mar 01, 2012 2:45 am

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
wendlesora
 
Posts: 11
Joined: Fri Apr 01, 2011 9:54 pm
Top


Return to Class Action

 


  • Related topics
    Replies
    Views
    Last post