Web Site Replicator v3.2
Created by Mike Watkins of Envex Developments
Newuser HTML Form
This page will step you through the process of creating a newuser HTML form, which will allow
the public to instantly become a member of your program and have their new web site replicated, just
by filling out a form.
In order to do this, you must know how to create HTML forms. If you do now know how, or do not feel like
going through this entire process, just access your Admin Control Panel. Once inside, Setup->Generate HTML Forms.
From this list displayed, select the Newuser form and click on
the Generate HTML Form button at the bottom of the screen. This will instantly generate the HTML code for your
newuser form. All you have to do is copy and paste it into a web page.
However, if you would like to create your newuser form from scratch, here's how. First, you have to create the <FORM ACTION>
tag. This tag has to point to the cgi-bin/newuser.cgi script on your server, with a method of POST. So, it will look something like this:
<form action="http://www.yourdomain.com/cgi-bin/wsr/newuser.cgi" method="POST">
Now, there are two hidden form fields which are required, or else the script will give off an error. So for the next two lines, put:
<input type="hidden" name="sponsor" value="~username~">
<input type="hidden" name="commission" value="0">
The above two lines will set the correct sponsor for the new member, and set the new member's commission to 0. There is one more hidden
form field that is optional. If you would like every new member to be redirected to a URL after filling out the newuser form, add another
hidden field to your form with the name of _redirect and the value of the URL you would like everyone redirected to. It would look something
like this:
<input type="hidden" name="_redirect" value="http://www.yourdomain.com/thankyou.html">
If your program contains multiple member types, you will need a field named _member_type. This field can be either a hidden field, or radio button. For example, if you want
all new members to start out as a silver member, then you would type the following into your form:
<input type="hidden" name="_member_type" value="silver">
Or, if you want you can let the new members choose which member type they would like to be by using radio buttons. For example, if your program contained
gold, silver and platinum members, you would add something like this to your form:
Please select which member type you would like to be:<br>
<input type="radio" name="_member_type" value="gold">Gold
<input type="radio" name="_member_type" value="silver">Silver
<input type="radio" name="_member_type" value="platinum">Platinum
Next you need to create a text field for every userfield in your member database. Well, except the sponsor and commission
fields, because you just finished them. So, for every userfield in your member database, you will need to have a text field with the
NAME of the userfield.
Username:<br>
<input type="text" name="username" size=25>
<br><br>
Please remember, Perl is case sensitive, so the names of ALL the text fields must be in all lowercase letters. If you would like to be sent extra information from the
newuser form, that you do not want to store in your member database, you may add extra text fields into your form. Then, when you go to edit the Admin Confirmation of New Member message,
just type the name of the extra form field, surrounded by ~ marks and then it will be replaced with the contents of the text field.
Once you added in all of the text fields, your done!
All you have to do is create a submit button so people can submit the form. The submit button would look something like this:
<input type="submit" value="Join Now!">
Now, save and upload your new web page and the public will be able to instantly become a member and have their self replicating web site created
just by filling out one simple HTML form!
< Prev |
Next >