Community discussions

MUM Europe 2020
 
Atroman
newbie
Topic Author
Posts: 46
Joined: Wed Dec 22, 2010 6:01 pm

Hide Profiles or display using html

Sun Jan 16, 2011 9:52 pm

Hi Guys,

I plan on using usermanager to authenticate hotspot users as well as my monthly billed clients (outside of user manager).
The monthly clients will be assigned different profiles to that of the hotspot users.

Is there a way to disable or hide some profiles so they don't appear on the hotspot signup page?

The other option I presume would be to manually create buttons on the signup page, does anyone know the html to do this?

Thanks
 
Atroman
newbie
Topic Author
Posts: 46
Joined: Wed Dec 22, 2010 6:01 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 2:49 pm

Bump..
 
multipath
newbie
Posts: 43
Joined: Fri Sep 17, 2010 4:42 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 7:34 pm

Are you going to be allowing users to have access to their setting under Usermanger? Changing the code to hide profiles is easy for the signup page, but the profiles still are visible if the user logs into the Usermanager using http://router_ip_address/user. Until we can edit all the webpages of the Usermanger or have direct access to the Userman database kinda defeats the purpose.

But....

For just the sign-up page and ability to hide some profiles on sign-up, create your own page and a item list with the values of the profiles. (Get these by opening the mikrotik page and view source.) Create fields as well for the other info such as login, password, and profile. Then pass these variables through the url to the original page. Edit the original page to do a postback on first load instead of waiting for user input. Users will never see the original sign-up page again. Don't forget to tweak the pages to disable browser back to keep users from double creating records. Your created webpage should reside on a different web server or be written in php.

I'm not a master webdesigner, but this works for us. I'd post my code but I still crutch myself with Dreamweaver, so it has code-behind and html on the same page which makes it difficult to read unless your use to Dreamweaver and are accustom to it. Our pages also gathers other userdata and places it in an access database. Simple stuff like First, M, Last Name, Contact Number, etc. stuff Usermanger should be collecting anyways in my opinion.
 
Atroman
newbie
Topic Author
Posts: 46
Joined: Wed Dec 22, 2010 6:01 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 7:40 pm

Ok, I think I follow...

Any chance of some example code...I'm a bit rusty with html.

Other question you may know the answer to...is it possible to auto populate the additional fields available within the user's profile?
I added the values to the form, eg location but it didn't seem to work.
 
multipath
newbie
Posts: 43
Joined: Fri Sep 17, 2010 4:42 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 7:54 pm

This page is on one server which can handle ASP.NET and C#.
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %><MM:Insert
runat="server"
CommandText='<%# "INSERT INTO Client_data (mpn_b_addr, mpn_b_city, mpn_b_state, mpn_b_zip, mpn_contact, mpn_dob, mpn_email, mpn_f_name, mpn_info_true, mpn_l_name, mpn_m_i, mpn_p_addr, mpn_p_city, mpn_p_state, mpn_p_zip, mpn_pin, mpn_signupdate, mpn_signuptime, mpn_terms_agree, mpn_login, mpn_password, mpn_profile, mpn_paypal_agree) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_mpn_db"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_mpn_db"] %>'
Expression='<%# Request.Form["MM_insert"] == "mpn_signup" %>'
CreateDataSet="false"
SuccessURL='<%# "http://account.path.net/user/signup/mbs?email=" + this.mpn_email.Text + "&login=" + this.mpn_login.Text + "&Password=" + this.mpn_password.Text + "&profile=" + this.mpn_profile.SelectedValue   %>'
Debug="true"
><Parameters>
  <Parameter Name="@mpn_b_addr" Value='<%# ((Request.Form["mpn_b_addr"] != null) && (Request.Form["mpn_b_addr"].Length > 0)) ? Request.Form["mpn_b_addr"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_b_city" Value='<%# ((Request.Form["mpn_b_city"] != null) && (Request.Form["mpn_b_city"].Length > 0)) ? Request.Form["mpn_b_city"] : "" %>' Type="WChar" /> 
  <Parameter Name="@mpn_b_state" Value='<%# ((Request.Form["mpn_b_state"] != null) && (Request.Form["mpn_b_state"].Length > 0)) ? Request.Form["mpn_b_state"] : "" %>' Type="WChar" /> 
  <Parameter Name="@mpn_b_zip" Value='<%# ((Request.Form["mpn_b_zip"] != null) && (Request.Form["mpn_b_zip"].Length > 0)) ? Request.Form["mpn_b_zip"] : "" %>' Type="WChar" /> 
  <Parameter Name="@mpn_contact" Value='<%# ((Request.Form["mpn_contact"] != null) && (Request.Form["mpn_contact"].Length > 0)) ? Request.Form["mpn_contact"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_dob" Value='<%# ((Request.Form["mpn_dob"] != null) && (Request.Form["mpn_dob"].Length > 0)) ? Request.Form["mpn_dob"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_email" Value='<%# ((Request.Form["mpn_email"] != null) && (Request.Form["mpn_email"].Length > 0)) ? Request.Form["mpn_email"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_f_name" Value='<%# ((Request.Form["mpn_f_name"] != null) && (Request.Form["mpn_f_name"].Length > 0)) ? Request.Form["mpn_f_name"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_info_true" Value='<%# ((Request.Form["mpn_info_true"] != null) && (Request.Form["mpn_info_true"].Length > 0)) ? Request.Form["mpn_info_true"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_l_name" Value='<%# ((Request.Form["mpn_l_name"] != null) && (Request.Form["mpn_l_name"].Length > 0)) ? Request.Form["mpn_l_name"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_m_i" Value='<%# ((Request.Form["mpn_m_i"] != null) && (Request.Form["mpn_m_i"].Length > 0)) ? Request.Form["mpn_m_i"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_p_addr" Value='<%# ((Request.Form["mpn_p_addr"] != null) && (Request.Form["mpn_p_addr"].Length > 0)) ? Request.Form["mpn_p_addr"] : "" %>' Type="WChar" /> 
  <Parameter Name="@mpn_p_city" Value='<%# ((Request.Form["mpn_p_city"] != null) && (Request.Form["mpn_p_city"].Length > 0)) ? Request.Form["mpn_p_city"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_p_state" Value='<%# ((Request.Form["mpn_p_state"] != null) && (Request.Form["mpn_p_state"].Length > 0)) ? Request.Form["mpn_p_state"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_p_zip" Value='<%# ((Request.Form["mpn_p_zip"] != null) && (Request.Form["mpn_p_zip"].Length > 0)) ? Request.Form["mpn_p_zip"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_pin" Value='<%# ((Request.Form["mpn_pin"] != null) && (Request.Form["mpn_pin"].Length > 0)) ? Request.Form["mpn_pin"] : "" %>' Type="WChar" />  
  <Parameter Name="@mpn_signupdate" Value='<%# DateTime.Now.ToString("MM/dd/yyyy") %>' Type="WChar" />  
  <Parameter Name="@mpn_signuptime" Value='<%# DateTime.Now.ToString("T") %>' Type="WChar" />  
  <Parameter Name="@mpn_terms_agree" Value='<%# ((Request.Form["mpn_terms_agree"] != null) && (Request.Form["mpn_terms_agree"].Length > 0)) ? Request.Form["mpn_terms_agree"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_login" Value='<%# ((Request.Form["mpn_login"] != null) && (Request.Form["mpn_login"].Length > 0)) ? Request.Form["mpn_login"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_password" Value='<%# ((Request.Form["mpn_password"] != null) && (Request.Form["mpn_password"].Length > 0)) ? Request.Form["mpn_password"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_profile" Value='<%# ((Request.Form["mpn_profile"] != null) && (Request.Form["mpn_profile"].Length > 0)) ? Request.Form["mpn_profile"] : "" %>' Type="WChar" />
  <Parameter Name="@mpn_paypal_agree" Value='<%# ((Request.Form["pay_method"] != null) && (Request.Form["pay_method"].Length > 0)) ? Request.Form["pay_method"] : "" %>' Type="WChar" />
  
</Parameters>

</MM:Insert>

<MM:DataSet 
id="ds_states"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_mpn_db"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_mpn_db"] %>'
CommandText='<%# "SELECT state_long, state_short FROM state_info ORDER BY state_long ASC" %>'
Debug="true"
></MM:DataSet>


<MM:DataSet 
id="ds_check_exists"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_mpn_db"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_mpn_db"] %>'
CommandText='<%# "SELECT mpn_email FROM Client_data WHERE mpn_email = ?" %>'
Debug="true"
>
  <Parameters>
    <Parameter  Name="@mpn_email"  Value='<%# ((Request.Form["mpn_email"] != null) && (Request.Form["mpn_email"].Length > 0)) ? Request.Form["mpn_email"] : "" %>'  Type="WChar"   />  
  </Parameters>
</MM:DataSet>
<MM:DataSet 
id="ds_um_exists"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_mpn_db"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_mpn_db"] %>'
CommandText='<%# "SELECT mpn_login FROM Client_data WHERE mpn_login = ?" %>'
Debug="true"
>
  <Parameters>
    <Parameter  Name="@mpn_login"  Value='<%# ((Request.Form["mpn_login"] != null) && (Request.Form["mpn_login"].Length > 0)) ? Request.Form["mpn_login"] : "" %>'  Type="WChar"   />
  </Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<script runat="server">

protected void Page_Load(Object Src, EventArgs E)
{
   CurrentDate();
   
  if (!IsPostBack) 
  {
  Session["dodata"]= "false" ; 
  Session["mpn_pin"]= "";
  }
  else 
  {
  Session["dodata"]= "true" ; 
  Session["mpn_pin"]= Request.Form["mpn_pin"].ToString();
  
  } 
  
}

private void CurrentDate ()
	{
	Session["mpn_signupdate"] = DateTime.Now.ToString("MM/dd/yyyy") ;
	Session["mpn_signuptime"] = DateTime.Now.ToString("T") ;
	}


</script>




<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <title>Zulu Zone User Signup</title>
<style type="text/css">
<!--
body {
	background-image: url(_content/_pics/bg-red_sm.png);
}
.style1 {
	font-size: 12px
}
.style2 {
	color: #FF0000
}
.style3 {
	font-size: 10pt
}
.style5 {color: #0000FF}
.style10 {
	font-size: 12px
}
-->
</style>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style11 {
	font-size: 14px;
	font-weight: bold;
}
.style12 {color: #000000}
.style13 {font-size: 12pt}
.style16 {font-weight: bold}
.style18 {font-size: 11px}
-->
</style>
</head>



<body onLoad="disableBackButton()">
<form runat='server' method='POST' name='mpn_signup' id="mpn_signup">

<div id="cntr_container">
  <table border="3" align="center" cellpadding="3" bordercolor="#000000" bgcolor="#FFFFFF" id="cntr_conttable">
    <tr>
      <td nowrap="nowrap" bordercolor="0" id="cntr_conttd">
        <div id="cntr_continner">
          <div class="shadow">
            <div class="shadow-inner">
              <div class="shadow-cnt">
                <div id="cntr_logo">
                  <div align="center">
                    <p><img src="_content/_pics/MPN_logo_sm.png" alt="Multi-Path Logo" /></p>
                    <hr size="3" noshade="noshade" />
                  </div>
                  <p align="center" class="style1">If you are a current customer and need to recharge your account,<br />
                  please login to account management below to provide payment.<br />
                  <br />
                  <a href="http://account.multi-path.net/user">Account Management<br />
                  <img src="_content/_pics/home-office.jpg" alt="Account Mgnt" width="110" height="75" border="0" /></a></p>
                  <hr size="3" />
                  <p align="center" class="style1"><span class="style5 style3"><u><span class="style13">Important Notes about Account Sign-Up and  Payment.</span><br />
                        <br />
                  </u></span><span class="style1">Zulu Zone purchases require a laptop with a working wifi card. <br />
                  <br />
A Zulu Zone purchase does not obligate Multi-Path Networks, Inc. 
                        to <br />
provide any equipment 
                        that may be necessary for service to the end user. <br />
                  </span></p>
                  <p align="center" class="style10"><span class="style5 "><span class="style2">No Refunds</span><span class="style12"> will be given after first successful login to system.<br />
                    <br />
                    <span class="style2">Zulu Zone Payments must be made through Paypal.<br />
                    Mailed payments will not be accepted and will be returned.<br />
                    No exceptions.</span><br />
                    <br />
                    If payment is made by eCheck, account will not be activated <br />
                    until eCheck clears, usually in 3-5 business days.<br />
  <br />
                    If payment is made with paypal account or credit card and system<br />
                    does not allow access
                    within 5-10 mins. 
                    please  call us <br />
                    with Pay-Pal Transaction ID# for 
                    manual activation.</span></span></p>
                  <p align="center" class="style1"><span class="style1">Please visit <a href="http://www.path.net" target="_blank">www.path.net</a> for equipment purchase options or more details.</span></p>
                  <hr size="3" noshade="noshade" />
                  <p align="center" class="style1"><span class="style11"><u>Multi-Path  User Manager - Zulu Zone Signup</u></span><br />
                    All new customers are required to fill out the below form.</p>
                </div>
                
                <table width="100%" cellpadding="5" class="cntr_tbl">
                  <tr>
                    <td align="right" class="style1">
                      <div align="center" class="style1"><strong>First Name</strong></div></td>

                    <td width="36%" align="left" class="style1">
                      <span id="sprytextfield1">
                        <label></label>
                        <span class="textfieldRequiredMsg">A value is required.</span></span><asp:TextBox ID="mpn_f_name" ToolTip="Enter First Name." TextMode="SingleLine" runat="server" Columns="25" /> <asp:RequiredFieldValidator ControlToValidate="mpn_f_name" Display="Dynamic" ErrorMessage="Please enter a first name." ID="mpn_f_nameValid" runat="server" Text="*" /></td>
                  </tr>
                  
                  <tr>
                    <td align="right" class="style1">
                      <div align="center" class="style1"><strong>Middle Initial</strong></div></td>
            
                    <td align="left" class="style1"><span id="sprytextfield2">
                      <label></label>
                      <span class="textfieldRequiredMsg">A value is required.</span><asp:TextBox ID="mpn_m_i" ToolTip="Enter Middle Initial." TextMode="SingleLine" runat="server" MaxLength="1" Columns="25" /> 
                      <asp:RequiredFieldValidator ControlToValidate="mpn_m_i" Display="Dynamic" ErrorMessage="Please enter a middle initial." ID="mpn_m_iValid" runat="server" Text="*" /></span></td>
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center" class="style1"><strong>Last Name</strong></div></td>
    
                    <td align="left" class="style1"><span id="sprytextfield3">
                      <label></label>
                      <span class="textfieldRequiredMsg">A value is required.</span><asp:TextBox ID="mpn_l_name" ToolTip="Enter Last Name." TextMode="SingleLine" runat="server" Columns="25" /> 
                      <asp:RequiredFieldValidator ControlToValidate="mpn_l_name" Display="Dynamic" ErrorMessage="Please enter a last name." ID="mpn_l_nameValid" runat="server" Text="*" /></span></td>
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center"><strong><span class="style1">Date of Birth</span><br />
                          </strong><span class="style18">(Example: 01/01/1901)</span></div></td>

                    <td align="left" class="style1"><span id="sprytextfield4">
                      <label></label>
                      <span class="textfieldRequiredMsg">A value is required.</span><asp:TextBox ID="mpn_dob" ToolTip="Enter Date of Birth." TextMode="SingleLine" runat="server" Columns="25" />
                      <span class="style10"></span>
                      <asp:RegularExpressionValidator ControlToValidate="mpn_dob" Display="Dynamic" ErrorMessage="Please enter your date of birth in the following format 01/01/1901." ID="mpn_dobValid" runat="server" Text="*" ValidationExpression="^\d{2}/\d{2}/\d{4}$" /><asp:RegularExpressionValidator ControlToValidate="mpn_dob" Display="Dynamic" ErrorMessage="You must be 19 years old or older to sign-up." ID="mpn_dobValid2" runat="server" Text="*" ValidationExpression="^(?:12/31/1992|(?:(?:[12][0-9]|0[1-9])/02|(?:30|[12][0-9]|0[1-9])/(?:0[469]|11)|(?:3[01]|[12][0-9]|0[1-9])/(?:0[13578]|1[02]))/(?:199[01]|19[0-8][0-9]))$" /><asp:RequiredFieldValidator ControlToValidate="mpn_dob" Display="Dynamic" ErrorMessage="Date of birth is required." ID="mpn_dobValid3" runat="server" Text="*" /></span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><strong><span class="style1">Security Pin Number</span><br />
                      </strong>(Must be greater than 4 digits.)</div></td>
                    <td align="left" class="style1"><asp:TextBox ID="mpn_pin" runat="server" ToolTip="Please enter a pin number greater than 4 digits." TextMode="SingleLine" Columns="25" />
                      <asp:RegularExpressionValidator ControlToValidate="mpn_pin" Display="Dynamic" ErrorMessage="Please enter a security pin greater than 4 digits long." ID="mpn_pinValid3" runat="server" Text="*" ValidationExpression="^\d{5,10}$" />                    
                      <asp:RequiredFieldValidator ControlToValidate="mpn_pin" Display="Dynamic" ErrorMessage="Please enter a security pin number." ID="mpn_pinValid4" runat="server" Text="*" /></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><strong><span class="style1">Contact Phone Number</span><br />
                    </strong>(Example: 205-555-5555)</div></td>
                    <td align="left" class="style1"><span id="sprytextfield5">
                      <label></label>
                      <span class="textfieldRequiredMsg">A value is required.</span><asp:TextBox ID="mpn_contact" ToolTip="Enter Phone Number to be contacted at." TextMode="SingleLine" runat="server" Columns="25" /> 
                      <asp:RegularExpressionValidator ControlToValidate="mpn_contact" Display="Dynamic" ErrorMessage="Please enter your phone number in the following format 555-555-5555." ID="phone_exp" runat="server" Text="*" ValidationExpression="^\d{3}-\d{3}-\d{4}$" /><asp:RequiredFieldValidator ControlToValidate="mpn_contact" Display="Dynamic" ErrorMessage="Contact number is required." ID="mpn_contactValid2" runat="server" Text="*" /></span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center" class="style1"><strong>Email Address</strong></div></td>
                    <td align="left" class="style1"><asp:TextBox ID="mpn_email" TextMode="SingleLine" runat="server" ToolTip="Enter your email address." Columns="25" />
                    <asp:RequiredFieldValidator ControlToValidate="mpn_email" Display="Dynamic" ErrorMessage="Please enter a valid email address." ID="emailValid" runat="server" Text="*" />
                    
                     <asp:RegularExpressionValidator ControltoValidate="mpn_email" Display="Dynamic" ErrorMessage="Please enter a valid email address." id="EmailValid2" runat="server" Text="*" ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"></asp:RegularExpressionValidator>
                     <asp:CompareValidator ControlToCompare="mpn_exists_txt" ControlToValidate="mpn_email" Display="Dynamic" ErrorMessage="This email address is already in use." ID="mpn_exists_check" Operator="NotEqual" runat="server" Text="*" />
                     <asp:TextBox ID="mpn_exists_txt" Text='<%# ds_check_exists.FieldValue("mpn_email", Container) %>'  Width="0px" BackColor="Transparent" ForeColor="White" BorderStyle="None" ReadOnly="true" runat="server" /></td>
                  </tr>
                  <tr>
                    <td valign="bottom" class="style1"><div align="center" class="style1"><strong><u>Billing Address</u></strong></div></td>
                    <td align="left" valign="bottom" class="style1">
                      <label></label>                      <span class="textfieldRequiredMsg">A value is required.</span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center">Number and Street:</div></td>
                    <td align="left" class="style1"><span class="style10">
                      <asp:TextBox ID="mpn_b_addr" ToolTip="Enter billing address." runat="server" TextMode="SingleLine" Columns="25" />                      
                      <asp:RequiredFieldValidator ControlToValidate="mpn_b_addr" Display="Dynamic" ErrorMessage="Please enter the address where official mail can be sent." ID="mpn_b_addrValid" runat="server" Text="*" />                      
                    </span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><span class="style10">City / Town:</span></div></td>
                    <td align="left" class="style1"><asp:TextBox ID="mpn_b_city" TextMode="SingleLine" runat="server" />
                      <span class="style10">
                      <asp:RequiredFieldValidator ControlToValidate="mpn_b_city" Display="Dynamic" ErrorMessage="Please enter the billing city." ID="mpn_b_cityValid" runat="server" Text="*" />                    </span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><span class="style10">State and Zip Code:</span></div></td>
                    <td align="left" class="style1"><span class="style10">
                      <asp:DropDownList ID="mpn_b_state" DataSource="<%# ds_states.DefaultView %>" DataTextField="state_short" DataValueField="state_short" runat="server"></asp:DropDownList>
                      <asp:RequiredFieldValidator ControlToValidate="mpn_b_state" Display="Dynamic" ErrorMessage="Please select a state." ID="mpn_b_stateValid" runat="server" Text="*" />                      
                      &nbsp;&nbsp;
                      <asp:TextBox ID="mpn_b_zip" runat="server" MaxLength="5" Columns="2" />                      
                      <asp:RegularExpressionValidator ControlToValidate="mpn_b_zip" Display="Dynamic" ErrorMessage="Please enter a five digit zip code." ID="mpn_b_zipValid" runat="server" Text="*" ValidationExpression="^\d{5}$" />                      
                      <asp:RequiredFieldValidator ControlToValidate="mpn_b_zip" Display="Dynamic" ErrorMessage="Please enter a zip code." ID="mpn_b_zipValid2" runat="server" Text="*" />                                            
                    </span></td>
                  </tr>
                  <tr>
                    <td align="right" valign="bottom" class="style1"><div align="center" class="style1"><strong><u>Physical Address</u></strong></div></td>
                    <td align="left" valign="bottom" class="style1">&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center">Number and Street:</div></td>
                    <td align="left" class="style1"><span class="style10">
                      <asp:TextBox ID="mpn_p_addr" ToolTip="Enter physical address service will be used." TextMode="SingleLine" runat="server" Columns="25" />                        
                        <asp:RequiredFieldValidator ControlToValidate="mpn_p_addr" Display="Dynamic" ErrorMessage="Please enter the address where service will be used." ID="mpn_p_addrValid" runat="server" Text="*" />                                                
                    </span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><span class="style10">City / Town:</span></div></td>
                    <td align="left" class="style1"><span class="style10">
                      <asp:TextBox ID="mpn_p_city" TextMode="SingleLine" runat="server" />                                              
                      <asp:RequiredFieldValidator ControlToValidate="mpn_p_city" Display="Dynamic" ErrorMessage="Please enter the city where serivce will be used." ID="mpn_p_cityValid" runat="server" Text="*" />                      
                      &nbsp;&nbsp;</span></td>
                  </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center"><span class="style10">State and Zip Code:</span></div></td>
                    <td align="left" class="style1"><span class="style10">
                      <asp:DropDownList ID="mpn_p_state" DataSource="<%# ds_states.DefaultView %>" DataTextField="state_short" DataValueField="state_short" runat="server"></asp:DropDownList>
                      <asp:RequiredFieldValidator ControlToValidate="mpn_p_state" Display="Dynamic" ErrorMessage="Please select a state." ID="mpn_p_stateValid" runat="server" Text="*" />                      
                        &nbsp;&nbsp;
                       <asp:TextBox ID="mpn_p_zip" runat="server" MaxLength="5" Columns="1" />                       
                       <asp:RegularExpressionValidator ControlToValidate="mpn_p_zip" Display="Dynamic" ErrorMessage="Please enter a five digit zip code." ID="mpn_p_zipValid" runat="server" Text="*" ValidationExpression="^\d{5}$" />                       
                       <asp:RequiredFieldValidator ControlToValidate="mpn_p_zip" Display="Dynamic" ErrorMessage="Please enter a zip code." ID="mpn_p_zipValid2" runat="server" Text="*" />                                              
</span></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><hr align="center" size="3" /></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center" class="style12"><br />
                      Client agrees the information provided is true and accurate to the best of his/her ability.<br />
                    Any information willingly provided that is false will be 
                      considered<br /> 
                      fraud and punishable by all applicable laws and jurisdictions.</div></td>
                    </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center" class="style2">
                      <div align="center" class="style12">Do you certify the information given is true and accurate to the best of your ability?                      </div>
                    </div>                      
                      <div align="left"></div>                      </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center">
                      <asp:RadioButtonList ID="mpn_info_true" ToolTip="Must certify the information is true." runat="server">
                        <asp:ListItem value="Yes">Yes, I certify the information is true.</asp:ListItem>
                      </asp:RadioButtonList><asp:RequiredFieldValidator ControlToValidate="mpn_info_true" Display="Dynamic" ErrorMessage="" ID="mpn_info_trueValid" runat="server" Text="You must certify the information given." />
                    </div></td>
                    </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center">
                      <hr size="3" />
                    </div></td>
                    </tr>
                  <tr>
                    <td align="right" class="style1"><div align="center">User must read before purchase:</div></td>
                    <td align="center" nowrap="nowrap" class="style1"><div align="left"><a href="terms.aspx" target="_blank">Terms/Conditions</a> and <a href="fap.aspx" target="_blank">Fair Access Policy</a></div></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center" class="style2">
                      <div align="center" class="style12">Do you agree to abide and be bound by Multi-Path Networks, Inc.<br /> 
                        terms/conditions and Fair Access Policy?                      </div>
                    </div>                      </td>
                    </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center">
                      <asp:RadioButtonList ID="mpn_terms_agree" runat="server">
                        <asp:ListItem value="Yes">Yes, I agree to abide by the Terms/Conditions and the Fair Access Policy.</asp:ListItem>
</asp:RadioButtonList><asp:RequiredFieldValidator ControlToValidate="mpn_terms_agree" Display="Dynamic" ErrorMessage="" ID="mpn_terms_agreeValid" runat="server" Text="You must agree to the Terms/Conditions and Fair Access Policy to continue." />
                    </div></td>
                    </tr>

                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center">
                      <hr size="3" />
                    </div></td>
                  </tr>
                  <tr>
                    <td align="center" class="style1"><strong>Create a Login / Username</strong></td>
                    <td align="left" class="style1">                      <asp:TextBox ID="mpn_login" TextMode="SingleLine" runat="server" />
                      <span class="style10">
                      <asp:RequiredFieldValidator 
                      ControlToValidate="mpn_login" 
                      Display="Dynamic" 
                      ErrorMessage="Please enter a login or username." 
                      ID="mpn_loginValid" 
                      runat="server" 
                      Text="*" />
                       <asp:RegularExpressionValidator
						id="mpn_loginValid2"
						runat="server"
						ErrorMessage="Login / Username must be greater than 3 characters."
						ControlToValidate="mpn_login"
						ValidationExpression="[0-9a-zA-Z]{3,}"
                        Display="Dynamic"
                        Text="*" />
                       <asp:CompareValidator ControlToCompare="mpn_um_exists_txt" ControlToValidate="mpn_login" Display="Dynamic" ErrorMessage="This login / username is already in use." ID="mpn_um_exists_check" Operator="NotEqual" runat="server" Text="*" />                       
                       <asp:TextBox ID="mpn_um_exists_txt" Text='<%# ds_um_exists.FieldValue("mpn_login", Container) %>'  Width="0px" BackColor="Transparent" ForeColor="White" BorderStyle="None" ReadOnly="true" runat="server" />                       </span></td>
                  </tr>
                  <tr>
                    <td align="center" class="style1"><strong>Create a Password</strong></td>
                    <td align="left" class="style1">                      <asp:TextBox ID="mpn_password" runat="server" />
                      <span class="style10">
                      <asp:RequiredFieldValidator ControlToValidate="mpn_password" Display="Dynamic" ErrorMessage="Please enter a password." ID="mpn_passwordValid" runat="server" Text="*" />
                      <asp:RegularExpressionValidator
						id="mpn_passwordValid2"
						runat="server"
						ErrorMessage="Password must be greater than 5 characters."
						ControlToValidate="mpn_password"
						ValidationExpression="[0-9a-zA-Z]{5,}"
                        Display="Dynamic"
                        Text="*" />                       
</span></td>
                  </tr>
                  <tr>
                    <td align="center" class="style1"><strong>Confirm Password</strong></td>
                    <td align="left" class="style1"><asp:TextBox ID="mpn_password2" runat="server" />
                      <span class="style10">
                      <asp:RequiredFieldValidator ControlToValidate="mpn_password2" Display="Dynamic" ErrorMessage="Please confirm your password." ID="mpn_password2Valid" runat="server" Text="*" />                      
<asp:CompareValidator ControlToCompare="mpn_password" ControlToValidate="mpn_password2" Display="Dynamic" ErrorMessage="Passwords do not match." ID="mpn_confirm_pass" Operator="Equal" runat="server" Text="*" /></span></td>
                  </tr>
                  <tr>
                    <td align="center" class="style1"><strong>Please choose a Data Plan</strong><br />
                      Download Limit (Price) </td>
                    <td align="left" nowrap="nowrap" class="style1">
                      <asp:DropDownList ID="mpn_profile" runat="server">
                      <asp:ListItem value=""></asp:ListItem>
                      <asp:ListItem value="32">Zulu 5GB (25.00 USD)</asp:ListItem>
                      <asp:ListItem value="33">Zulu 10GB (37.50 USD)</asp:ListItem>
                      <asp:ListItem value="34">Zulu 20GB (75.00 USD)</asp:ListItem>
                      <asp:ListItem value="35">Zulu 50GB (150.00 USD)</asp:ListItem>
                      <asp:ListItem value="36">Zulu Moderate Filter 5GB (25.00 USD)</asp:ListItem>
                      <asp:ListItem value="37">Zulu Moderate Filter 10GB (37.50 USD)</asp:ListItem>
                      <asp:ListItem value="38">Zulu Moderate Filter 20GB (75.00 USD)</asp:ListItem>
                      <asp:ListItem value="39">Zulu Moderate Filter 50GB (150.00 USD)</asp:ListItem>
                      <asp:ListItem value="40">Zulu Kids Only 5GB (5.00 USD)</asp:ListItem>
                      <asp:ListItem value="41">Zulu Kids Only 10GB (10.00 USD)</asp:ListItem>
                      <asp:ListItem value="42">Zulu Kids Only 20GB (20.00 USD)</asp:ListItem>
                      <asp:ListItem value="43">Zulu Kids Only 50GB (50.00 USD)</asp:ListItem>
                    </asp:DropDownList>
                    <span class="style10">
                    <asp:RequiredFieldValidator ControlToValidate="mpn_profile" Display="Dynamic" ErrorMessage="Please select a Data Plan." ID="mpn_profileValid" runat="server" Text="*" />                    </span>                   </td>
                  </tr>
                  <tr>
                    <td align="center" class="style1"><strong> Important!<br />
                      Always print your receipt. </strong></td>
                    <td align="left" class="style1">
                     <asp:RadioButtonList ID="pay_method" runat="server">
                        <asp:ListItem value="2">Yes, I agree to paying by Paypal.</asp:ListItem>
</asp:RadioButtonList><asp:RequiredFieldValidator ControlToValidate="pay_method" Display="Dynamic" ErrorMessage="" ID="pay_methodValid" runat="server" Text="You must agree to use Paypal.com to continue." />
                    </td>
                  </tr>
                  <tr>                
                    <td colspan="2" align="right" class="style1">
                      <div align="center"> <br />
                      <asp:Button ID="Submit" runat="server" Text="Continue to Paypal for payment ->" CausesValidation="true" Height="35" />                          
                      </div></td>
                  </tr>

                  <tr>                
                    <td colspan="2" align="center" class="style1"><span class="style2 style16"><span class="style10">
                      <asp:ValidationSummary DisplayMode="List" ID="FormValid" runat="server" />                      
                    </span></span></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center" class="style1">&nbsp;</td>
                  </tr>
                </table>          
                <span class="style1"></span></div>
            </div>
          </div>
        </div>      </td>
    </tr>
  </table>
  <p align="center" class="style2 style3">&nbsp;</p>
</div>
   
<input type="hidden" name="MM_insert" value="mpn_signup" />
</form>
<p>&nbsp;</p>



</body>
</html>

Last edited by multipath on Wed Jan 19, 2011 8:16 pm, edited 1 time in total.
 
multipath
newbie
Posts: 43
Joined: Fri Sep 17, 2010 4:42 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 7:58 pm

This page resides on the Mikrotik Router.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <title>Zulu Zone User Signup</title>
<style type="text/css">
<!--
body {
	background-image: url(http://www.path.net/_content/_pics/bg-red_sm.png);
}
.style1 {
	font-size: 12px
}
.style2 {
	color: #FF0000
}
.style3 {
	font-size: 10pt
}
.style11 {
	font-size: 14px;
	font-weight: bold;
}
.style12 {
	font-size: 12pt;
	color: #FF0000;
}
-->
</style></head>


<script type="text/javascript" >
function getQuerystring(key, default_)
{
  if (default_==null) default_=""; 
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}

</script>

<script type="text/javascript" src="/umfiles/general.js"></script>

<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>

<body onLoad="disableBackButton()">

<form name="signup" action="" method="post"
    onsubmit="return checkSignupForm()">
  <input type="hidden" name="signup" value="start" />

<div id="cntr_container">
  <table border="3" align="center" cellpadding="3" bordercolor="#000000" bgcolor="#FFFFFF" id="cntr_conttable">
    <tr>
      <td nowrap="nowrap" id="cntr_conttd">
        <div id="cntr_continner">
          <div class="shadow">
            <div class="shadow-inner">
              <div class="shadow-cnt">
                <div id="cntr_logo">
                  <div align="center"><br />
                    <img src="/umfiles/logo.gif" alt="Multi-Path Logo" />                  </div>
                  <p align="center" class="style11" id="logo_title">Multi-Path  User Manager - Zulu Zone Signup </p>
                  <p align="center" class="style1">Almost finish. We just need the following information, <br />
                    and then you will be redirected to Paypal for payment.</p>
                </div>
                
                <table width="100%" cellpadding="5" class="cntr_tbl">
                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Confirm Email Address                   </div></td>

                    <td align="left" class="style1">
                      <input type="text" id="sf_email" name="email" 
                             class="signup" value="$(email)" maxlength="100">                    </td>
                             
                             <!-- value="$(email)" -->
                  </tr>
                  
                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Login                    </div></td>
            
                    <td align="left" class="style1">
                      <input type="text" 
                             name="login" id="sf_user" maxlength="100"
                             value="$(login)" class="signup" />                    </td>
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Password                    </div></td>
    
                    <td align="left" class="style1">
                      <input type="text" name="password" id="sf_pwd" 
                             class="signup" maxlength="50">   
                             <script type="text/javascript">
							 var password_value = getQuerystring('Password'); 
                             sf_pwd.value = password_value ;
							 <!-- document.write(password_value); -->
                             </script>                             
                                              </td>
                             
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Confirm Password                    </div></td>

                    <td align="left" class="style1">
                      <input type="text" name="confirm_password" id="sf_cnf_pwd" 
                             class="signup" maxlength="50">    
                             <script type="text/javascript">
							 var password_2nd_value = getQuerystring('Password'); 
                             sf_cnf_pwd.value = password_2nd_value ;
                             </script>  
                             
                                             </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center" class="style2"><em>By continuing to purchase you agree you have read <br />
                      the terms/conditions and agree to be bound by them.</em></div></td>
                    </tr>


                  <tr class="top">
                    <td align="right" class="style1">
                      Download Limit (Price)                    </td>
      
                    <td align="left" class="style1">
                                    
                        $(profiles)                    
                        	<script type="text/javascript">
							 var profile_value = getQuerystring('profile'); 
                             buy_profile.value = profile_value ;
                             </script>
                        </td>
                  </tr>

                  <tr class="top" id="method_row">
                    <td align="right" class="style1"><div align="center">Important! <br />
                      Always print  receipt.</div></td>

                    <td align="left" class="style1">
                      Pay with $(methods)</td>
                  </tr>

                  <tr>                
                    <td colspan="2" align="right" class="style1">
                      <div align="center">
                        
                        <input type="submit" name="btn_signup" id="btn_signup" value="Continue and Pay for Service">
                        </div></td>
                  </tr>

                  <tr>                
                    <td colspan="2" align="center" class="style1">
                      <p class="signuperror style12">$(error)</p>                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center" class="style1">&nbsp;</td>
                  </tr>
                </table>          
              </div>
            </div>
          </div>
        </div>      </td>
    </tr>
  </table>
  <p align="center" class="style2 style3">&nbsp;</p>
</div>
</form>

<script language="JavaScript">
<!--
  if (document.signup && document.signup.user) document.signup.user.focus();

  function checkSignupForm() {
    if (!checkEmail("sf_email")) return false;
    if (!checkMinLen("sf_user", "Login", 3)) return false;
    if (!checkMinLen("sf_pwd", "Password", 5)) return false;
    if (!checkAreEqual("sf_pwd", "sf_cnf_pwd", "Passwords differ")) return false;
    return true;
	
  } 

  -->
</script>

<script type="text/javascript">
                        function submit_form() 
						{ 
						document.signup.submit();
                        }
						if(window.attachEvent)
                        {
 						window.attachEvent("onload", submit_form);
						}
                        else
                        {
						window.addEventListener("load", submit_form, false);
						}
                        </script>

</body>
</html>


 
multipath
newbie
Posts: 43
Joined: Fri Sep 17, 2010 4:42 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 8:00 pm

Ok, I think I follow...

Any chance of some example code...I'm a bit rusty with html.

Other question you may know the answer to...is it possible to auto populate the additional fields available within the user's profile?
I added the values to the form, eg location but it didn't seem to work.

I tried and tried to get the additional info to populate but it seems the fields are controlled by
<script type="text/javascript" src="/umfiles/general.js"></script>
a code-behind page which is hidden and I have not been able to access it.
 
Atroman
newbie
Topic Author
Posts: 46
Joined: Wed Dec 22, 2010 6:01 pm

Re: Hide Profiles or display using html

Wed Jan 19, 2011 8:11 pm

Hmmm, thats not cool.
You'd think it would be an obvious thing. I would have thought it was a common requirement to have more than just a name and an email address these days.
 
multipath
newbie
Posts: 43
Joined: Fri Sep 17, 2010 4:42 pm

Re: Hide Profiles or display using html

Mon Jan 24, 2011 8:01 am

Looks like I was wrong on what the .js file did.
function checkEmail(objid) {
    var obj = document.getElementById(objid);
    if (!obj) return false;
    var eregex  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;    
    if (!eregex.test(obj.value)) {
        alert("Invalid email address");
        obj.focus();
        return false;
    }
    return true;
}

function checkMinLen(objid, objname, minlen) {
    var obj = document.getElementById(objid);
    if (!obj) return false;
    var v = "" + obj.value;
    if (v.length < minlen) {
        alert(objname + " must be at least " + minlen + " characters long");
        obj.focus();
        return false;
    }
    return true;
}

function checkAreEqual(obj1id, obj2id, errmsg) {
    var obj1 = document.getElementById(obj1id);
    if (!obj1) return false;
    var obj2 = document.getElementById(obj2id);
    if (!obj2) return false;
    if (obj1.value != obj2.value) {
	alert(errmsg);
	obj2.focus();
	return false;
    }
    return true;
}
 
Etza
newbie
Posts: 49
Joined: Tue May 31, 2011 10:33 pm

Re: Hide Profiles or display using html

Thu Dec 19, 2013 1:33 pm

This page resides on the Mikrotik Router.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <title>Zulu Zone User Signup</title>
<style type="text/css">
<!--
body {
	background-image: url(http://www.path.net/_content/_pics/bg-red_sm.png);
}
.style1 {
	font-size: 12px
}
.style2 {
	color: #FF0000
}
.style3 {
	font-size: 10pt
}
.style11 {
	font-size: 14px;
	font-weight: bold;
}
.style12 {
	font-size: 12pt;
	color: #FF0000;
}
-->
</style></head>


<script type="text/javascript" >
function getQuerystring(key, default_)
{
  if (default_==null) default_=""; 
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}

</script>

<script type="text/javascript" src="/umfiles/general.js"></script>

<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>

<body onLoad="disableBackButton()">

<form name="signup" action="" method="post"
    onsubmit="return checkSignupForm()">
  <input type="hidden" name="signup" value="start" />

<div id="cntr_container">
  <table border="3" align="center" cellpadding="3" bordercolor="#000000" bgcolor="#FFFFFF" id="cntr_conttable">
    <tr>
      <td nowrap="nowrap" id="cntr_conttd">
        <div id="cntr_continner">
          <div class="shadow">
            <div class="shadow-inner">
              <div class="shadow-cnt">
                <div id="cntr_logo">
                  <div align="center"><br />
                    <img src="/umfiles/logo.gif" alt="Multi-Path Logo" />                  </div>
                  <p align="center" class="style11" id="logo_title">Multi-Path  User Manager - Zulu Zone Signup </p>
                  <p align="center" class="style1">Almost finish. We just need the following information, <br />
                    and then you will be redirected to Paypal for payment.</p>
                </div>
                
                <table width="100%" cellpadding="5" class="cntr_tbl">
                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Confirm Email Address                   </div></td>

                    <td align="left" class="style1">
                      <input type="text" id="sf_email" name="email" 
                             class="signup" value="$(email)" maxlength="100">                    </td>
                             
                             <!-- value="$(email)" -->
                  </tr>
                  
                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Login                    </div></td>
            
                    <td align="left" class="style1">
                      <input type="text" 
                             name="login" id="sf_user" maxlength="100"
                             value="$(login)" class="signup" />                    </td>
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Password                    </div></td>
    
                    <td align="left" class="style1">
                      <input type="text" name="password" id="sf_pwd" 
                             class="signup" maxlength="50">   
                             <script type="text/javascript">
							 var password_value = getQuerystring('Password'); 
                             sf_pwd.value = password_value ;
							 <!-- document.write(password_value); -->
                             </script>                             
                                              </td>
                             
                  </tr>

                  <tr>
                    <td align="right" class="style1">
                      <div align="center">Confirm Password                    </div></td>

                    <td align="left" class="style1">
                      <input type="text" name="confirm_password" id="sf_cnf_pwd" 
                             class="signup" maxlength="50">    
                             <script type="text/javascript">
							 var password_2nd_value = getQuerystring('Password'); 
                             sf_cnf_pwd.value = password_2nd_value ;
                             </script>  
                             
                                             </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="right" class="style1"><div align="center" class="style2"><em>By continuing to purchase you agree you have read <br />
                      the terms/conditions and agree to be bound by them.</em></div></td>
                    </tr>


                  <tr class="top">
                    <td align="right" class="style1">
                      Download Limit (Price)                    </td>
      
                    <td align="left" class="style1">
                                    
                        $(profiles)                    
                        	<script type="text/javascript">
							 var profile_value = getQuerystring('profile'); 
                             buy_profile.value = profile_value ;
                             </script>
                        </td>
                  </tr>

                  <tr class="top" id="method_row">
                    <td align="right" class="style1"><div align="center">Important! <br />
                      Always print  receipt.</div></td>

                    <td align="left" class="style1">
                      Pay with $(methods)</td>
                  </tr>

                  <tr>                
                    <td colspan="2" align="right" class="style1">
                      <div align="center">
                        
                        <input type="submit" name="btn_signup" id="btn_signup" value="Continue and Pay for Service">
                        </div></td>
                  </tr>

                  <tr>                
                    <td colspan="2" align="center" class="style1">
                      <p class="signuperror style12">$(error)</p>                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center" class="style1">&nbsp;</td>
                  </tr>
                </table>          
              </div>
            </div>
          </div>
        </div>      </td>
    </tr>
  </table>
  <p align="center" class="style2 style3">&nbsp;</p>
</div>
</form>

<script language="JavaScript">
<!--
  if (document.signup && document.signup.user) document.signup.user.focus();

  function checkSignupForm() {
    if (!checkEmail("sf_email")) return false;
    if (!checkMinLen("sf_user", "Login", 3)) return false;
    if (!checkMinLen("sf_pwd", "Password", 5)) return false;
    if (!checkAreEqual("sf_pwd", "sf_cnf_pwd", "Passwords differ")) return false;
    return true;
	
  } 

  -->
</script>

<script type="text/javascript">
                        function submit_form() 
						{ 
						document.signup.submit();
                        }
						if(window.attachEvent)
                        {
 						window.attachEvent("onload", submit_form);
						}
                        else
                        {
						window.addEventListener("load", submit_form, false);
						}
                        </script>

</body>
</html>





nice !!! and thx

how can i add extra fields in this page as : first name, last name, phone number ?????

Who is online

Users browsing this forum: No registered users and 5 guests