We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20014
    • 200 Posts
    I am editing this to be clear, I was kind of having a meltdown earlier and I guess I should have posted here: http://www.modxcms.com/forums/index.php?topic=17359

    sorry to the mods for starting the topic in General Repos...


    I have three problems:

    1.weblognPE won’t send out email though i have eform up and going smoothly for SMTP (I know two different snippets, I am just saying I can send out emails I modified class.phpmailer and eform.inc), I’ve looked everywhere to find an answer, manager is set with all the correct emails. it just states:An error while sending the email. Please contact the Site Administrator. Without this, then I am going to be overrun with bots, plus I won’t know when I have someone new on the site, and this could also prove to be a serious problems for clients.

    2. users filling out the form still become registered users even though they don’t respond to an EMAIL that never went out. I think my parameters are alright....okay I’m lame they have to be set as registered users, there is no way to test whether or not they can log in without a password, but I’ll leave this anyway since I feel they shouldn’t even become part of the webuser group until a successful email has been sent, but that’s just me.

    and 3. this one bugs me to no end, it makes me want to put my fist through my wacom...webloginPE states the the email entered into the form appears to be improperly formatted!! I have used several legitimate addresses to test....


    I am on the current version of EVO.

    Now I couldn’t really test on localhost this is one of those things you have to deal with when it goes live. though I thought I had some of the other problems described here licked.

    I’ve been checking the wiki and some docs (including those with the snippet itself)

    the snippet call:
    [!WebLoginPE? &type=`register` &groups=`Registered Users` &registerTpl=`pewebloginregister` &liHomeId=`54` &notify=`[email protected]` &regType=`verify`&regRequired=`email,username,fullname,formcode,tos`!]


    the template isn’t a problem because it’s modified default using the same classes in there.

    I set the class.phpmailer.php to the right settings for smtp (does class.smtp.php have anything to do with it?), I didn’t change the default port because eform works so why mess with it?

    EDIT: with the &regRequired it now says:The Email address you provided does not appear to be a properly formatted address.!!! I used valid accounts to test!! I gotta tell you I went with webloginPE because so many people here said it was so superior to the default snippet....man I am getting truly disheartened. I think the problem is in the following code in the webloginpe.class.php, but how do I rectify this? (concerning the email address provided being improperly formatted?)
    	/**
    	 * Validate an email address by regex and MX reccord
    	 *
    	 * @param string $Email An email address.
    	 * @return void
    	 * @author Scotty Delicious
    	 */
    	function ValidateEmail($Email)
    	{
    		// Original: ^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$
            if (!eregi("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,7}$", $Email)) // pixelchutes
    		{ 
    			return $this->FormatMessage('The Email address you provided does not appear to be a properly formatted address.');
    		}
      • 20014
      • 200 Posts
      I think my answer to sending the email lies here...maybe reading greek here

      /*
      		TOO MANY PROBLEMS WITH THIS VERIFICATION. I WILL COME BACK TO IT LATER.
      		list($Username, $Domain) = split("@", $Email);
      		if (getmxrr($Domain, $MXHost))
      		{
      			$ConnectAddress = $MXHost[0]; 
      		}
      		else
      		{
      			$ConnectAddress = $Domain;
      		}
      		
      		if ($Connect = @fsockopen($ConnectAddress, 25, $errno, $errstr, 30))
      		{
      			if (ereg("^220", $Out = fgets($Connect, 1024)))
      			{
      				fputs($Connect, "HELO $HTTP_HOST\r\n"); 
      				$Out = fgets($Connect, 1024);
      				fputs($Connect, "MAIL FROM: <{$Email}>\r\n"); 
      				$From = fgets($Connect, 1024);
      				fputs($Connect, "RCPT TO: <{$Email}>\r\n"); 
      				$To = fgets($Connect, 1024);
      				fputs($Connect, "QUIT\r\n"); 
      				fclose($Connect);
      
      				if (!ereg("^250", $From) || !ereg("^250", $To))
      				{
      					return $this->FormatMessage('Server rejected address');
      				}
      			}
      			else
      			{
      				return $this->FormatMessage('No response from server');
      			}
      		}
      		else
      		{
      			return $this->FormatMessage('Cannot connect to email server '.$ConnectAddress);
      		}*/
      		// If we got to this point, the email has passed our tests
      		// We could return a message that the email is valid, but 
      		// as a true pirate, I will just keep moving on.
      	}


      the comment has me worried, please someone tell me I didn’t waste my time styling these forms, the sites live, it took me about five minutes to have all my eform forms send the info, I have all these webloginPE forms styled but I can’t seem to get them to do what I want as far as sending out the email. AND TO MAKE MATTERS WORSE, THE PERSON FILLING OUT THE FORM IS STILL LISTED AS A REGISTERED USER WITHOUT ANY CONFIRMATION LETTER GOING OUT OR THE USER HAVING TO CONFIRM WHATSOEVER!

        • 20014
        • 200 Posts
        I installed the latest of webloginPE I could find, thinking maybe I had an older version still aint working (love that grammer?)
        I spent many days on these forms, now it looks I have to restructure my site...I am seriously bummed, no one has ever had this issue before?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          While I haven’t used WebLoginPE’s confirmation method, I can say that particular code is only for verifying that a supplied email address actually is a live email address. It can safely be ignored.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 20014
            • 200 Posts
            thanks Susan, actually it was a post of yours when I was prepping for smtp and eform (I knew was coming eventually) that had me up and running with all my client forms, contact forms and client area forms within only a few minutes,

            but for the life of me, even scouring the snippet’s thread, can’t find a solution to these problems (email verification, and sending a confirmation email), now I know I could set it up for instant verification but that would really defeat the point of going with webloginPE in the first place and maybe subject me to some bot problems, and the basic weblogin and websignup snippets seems to set up similarly in the sense that it allows the user to set password, I look at the websignup snippet doesn’t seem to have a verify condition, though I did review it in a frenzy last night.

            manager has all the right default email address, I set the php.class for smtp and changed only the one line in those (I think) five places in eform, so I assume that modx is set to send all it’s communication via smtp, now I know that webloginPE could be configured to do it the other way but I don’t know where to change the code, I am probably going to have to face this with TEmailer as well because I know it’s not set up for smtp but I’ll come to that when I do.

            If any of you gurus have even an inkling of an idea please send it my way, even if it turns out to be a dead end, there must be a way to resolve this, there always seems to be with modx.
              • 1169
              • 312 Posts
              Hi modxlearner123

              Sorry to hear you are having such troubles with Weblogin PE


              /*
              		TOO MANY PROBLEMS WITH THIS VERIFICATION. I WILL COME BACK TO IT LATER.
              		list($Username, $Domain) = split("@", $Email);
              		if (getmxrr($Domain, $MXHost))
              		{
              			$ConnectAddress = $MXHost[0]; 
              		}
              		else
              		{
              			$ConnectAddress = $Domain;
              		}
              		
              		if ($Connect = @fsockopen($ConnectAddress, 25, $errno, $errstr, 30))
              		{
              			if (ereg("^220", $Out = fgets($Connect, 1024)))
              			{
              				fputs($Connect, "HELO $HTTP_HOST\r\n"); 
              				$Out = fgets($Connect, 1024);
              				fputs($Connect, "MAIL FROM: <{$Email}>\r\n"); 
              				$From = fgets($Connect, 1024);
              				fputs($Connect, "RCPT TO: <{$Email}>\r\n"); 
              				$To = fgets($Connect, 1024);
              				fputs($Connect, "QUIT\r\n"); 
              				fclose($Connect);
              
              				if (!ereg("^250", $From) || !ereg("^250", $To))
              				{
              					return $this->FormatMessage('Server rejected address');
              				}
              			}
              			else
              			{
              				return $this->FormatMessage('No response from server');
              			}
              		}
              		else
              		{
              			return $this->FormatMessage('Cannot connect to email server '.$ConnectAddress);
              		}*/
              		// If we got to this point, the email has passed our tests
              		// We could return a message that the email is valid, but 
              		// as a true pirate, I will just keep moving on.
              	}

              I am no expert on the code and have not tried to use verify on email the code you point as being problematic is commented out so is not in use. Dr Scotty found it troublesome.
              	/**
              	 * Validate an email address by regex and MX reccord
              	 *
              	 * @param string $Email An email address.
              	 * @return void
              	 * @author Scotty Delicious
              	 */
              	function ValidateEmail($Email)
              	{
              		// Original: ^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$
                      if (!eregi("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,7}$", $Email)) // pixelchutes
              		{ 
              			return $this->FormatMessage('The Email address you provided does not appear to be a properly formatted address.');
              		}


              This code checks for valid email characters. If PHP 5.3 or > you may have problem as eregi() function is depreciated.

              I have changed this in soon to be released V1.3.2 Beta as well as other problems.

              Finding it difficult working on other peoples code as I am new to this.

                DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
                • 20014
                • 200 Posts
                thanks allanb,

                The code being commented out was what had me worried, pretty much gave me a clue, so how best should I make the call?, use the form with password and password confirm then in the snippet &regType=`intant` drop the &notify, but what about the &regRequired=`email,username,fullname,phone,formcode,tos’? I still need email to be required, but with that enabled I still get malformed email warning, what would you think is the best balance in this case for functionality and security, of course I have captcha, but that seems to me more appearance sake than anything else nowadays...

                you mention a beta release, once it’s released will it be compatible with evo 1.0.3 or is it for the upcoming revo?

                EDIT: just to let you know, I am on 5.2.13 on the remote server.
                  • 1169
                  • 312 Posts
                  As far as I know the commented out code goes back to before v1.3.0 so should not be a problem.
                  I checked the new code for Revo that uses a different take. More like the commented out code but not the same.
                  Seems to give some problems with g-mail but not sure.

                  The beta version was being tested with Evo 1.0.2 but should work with Evo 1.0.3 but I have not tested email functions as I have changed nothing there.

                  It will not work on Revo as is will require major mods.

                  Regards
                  Allan
                    DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
                    • 3749
                    • 24,544 Posts
                    modxlearner123, are you using Gmail for SMTP? If so, try these settings (with the correct PhpMailer variable names, of course):

                    &smtpAuth=`1`
                       &smtpHost=`smtp.gmail.com`
                       &smtpUsername=`[email protected]`
                       &smtpPassword=`your_gmail_password`
                       &smtpPort=`465`
                       &smtpPrefix=`tls` 
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 20014
                      • 200 Posts
                      Hey BobRay, No I am not using gmail, but you know, I think I’ll take a look at your example and dig through my host’s docs. so far I have only done as Susan suggested in this threadhttp://modxcms.com/forums/index.php/topic,42897.0.html her reply to the user’s first question, I haven’t even changed port 25 to 587 and so far no problems. BUT I DID MENTION SOMETHING EARLIER, INSIDE MANAGER/INCLUDES/CONTROLS, there is a file called class.smtp...what’s it for exactly if I am making configs to the class.phpmailer?

                      Problems still persist though, here is my snippet call:

                      [!WebLoginPE? &type=`register` &regType=`instant` &groups=`Registered Users` &registerTpl=`pewebloginregister` &liHomeId=`54`  &regRequired=`username,fullname,phone,formcode,tos`!]


                      I changed the template to include password fields (I actually took all the default templates and converted them to css), I’ve set regtype to `instant` and even tested without requiring email and STILL I get the message:An error while sending the email. Please contact the Site Administrator.


                      all the fields populate in the manager for the new user except the email...maybe that’s a clue to those of you are serious coders, maybe not.


                      here’s the template, as you can see based on the defaultRegisterInstantForm, funky code, but css and looks real purty on the front end from our beloved ie6 to the horrible horrible browser known as firefox. (don’t get upset, designer humor there) Please excuse the poor div indenting, that’s the resulting of moving things around quickly, believe me, I clean up once I get this situation settled.


                      [+wlpe.message+]
                      <div id="wlpeNewUser">
                      	<form id="wlpeUserRegisterForm" action="[~[*id*]~]" method="POST" enctype="multipart/form-data">
                      		<div id="wlpeUserRegisterInput">
                      			<div id="wlpeNewUserInfo">
                      				<p id="wlpeRegisterInfo">Use this form to register for a new user account.<br />
                      					<span class="info">Fields marked with <span class="required">*</span> are required.</span>
                      				</p>
                      			</div>
                      			<legend>Register for a new user account</legend>
                                  <div class="formcentering">
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterEmail"><span class="textback"><span class="required">*</span>Email</span> 
                      			<div class="text_input"><input id="wlpeUserRegisterEmail" type="text" name="email" value="[+post.email+]" /></div>
                      			</div></label>
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterUserName"><span class="textback"><span class="required">*</span>Desired User Name</span>
                      			<div class="text_input"><input id="wlpeUserRegisterUserName" type="text" name="username" value="[+post.username+]" /></div>
                      			</div></label>
                                  </div>
                                  <div class="formcentering">
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterFullName"><span class="textback"><span class="required">*</span>Full Name</span>
                      			<div class="text_input"><input id="wlpeUserRegisterFullName" type="text" name="fullname" value="[+post.fullname+]" /></div>
                      			</div></label>
                                  <div class="labelcontainer">          
                      			<label for="wlpeUserRegisterPassword"><span class="textback" id="textback"><span class="required">*</span>Password</span>
                      			<div class="text_input"><input id="wlpeUserRegisterPassword" type="password" name="password" value="[+post.password+]" /></div>
                      			</div></label>
                                  </div>
                                  <div class="formcentering">
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterPasswordConfirm"><span class="textback" id="textback"><span class="required">*</span>Password(confirm)</span> 
                      			<div class="text_input"><input id="wlpeUserRegisterPasswordConfirm" type="password" name="passwordconfirm" value="[+post.passwordconfirm+]" /></div>
                      			</div></label>
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterPhone"><span class="textback">Phone number</span>
                      			<div class="text_input"><input id="wlpeUserRegisterPhone" type="text" name="phone" /></div>
                      			</div></label>
                                  </div>
                                <div class="formcentering">
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterMobile"><span class="textback">Mobile number</span>
                      			<div class="text_input"><input id="wlpeUserRegisterMobile" type="text" name="mobilephone" value="[+post.mobilephone+]" /></div>
                      			</div></label>
                                   <div class="labelcontainer">
                      			<label for="wlpeUserRegisterFax"><span class="textback">Fax number</span>
                      			<div class="text_input"><input id="wlpeUserRegisterFax" type="text" name="fax" value="[+post.fax+]" /></div>
                      			</div></label>
                                  </div>
                                  <div class="formcentering">
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterState"><span class="textback">State</span>
                      			<div class="text_input"><input id="wlpeUserRegisterState" type="text" name="state" value="[+post.state+]" /></div>
                      			</div></label>
                                  <div class="labelcontainer">
                      			<label for="wlpeUserRegisterZip"><span class="textback">Zip Code</span>
                      			<div class="text_input"><input id="wlpeUserRegisterZip" type="text" name="zip" value="[+post.zip+]" /></div>
                      			</div></label>
                                  </div>
                                  <div class="formcentering">
                                      <div class="formcenteringselect">
                      		<h3 class="head3">Optional Account Profile Info</h3>
                      		<label for="country"><span class="textback">Country:</label></span>
                                <select  name="country" class="uniqueselect" id="wlpeUserProfileCountry">
                                <option value="" selected="selected"> </option>
                                <option value="1">Afghanistan</option>
                                <option value="2">Albania</option>
                                <option value="3">Algeria</option>
                                <option value="4">American Samoa</option>
                                <option value="5">Andorra</option>
                                <option value="6">Angola</option>
                                <option value="7">Anguilla</option>
                                <option value="8">Antarctica</option>
                                <option value="9">Antigua and Barbuda</option>
                                <option value="10">Argentina</option>
                                <option value="11">Armenia</option>
                                <option value="12">Aruba</option>
                                <option value="13">Australia</option>
                                <option value="14">Austria</option>
                                <option value="15">Azerbaijan</option>
                                <option value="16">Bahamas</option>
                                <option value="17">Bahrain</option>
                                <option value="18">Bangladesh</option>
                                <option value="19">Barbados</option>
                                <option value="20">Belarus</option>
                                <option value="21">Belgium</option>
                                <option value="22">Belize</option>
                                <option value="23">Benin</option>
                                <option value="24">Bermuda</option>
                                <option value="25">Bhutan</option>
                                <option value="26">Bolivia</option>
                                <option value="27">Bosnia and Herzegowina</option>
                                <option value="28">Botswana</option>
                                <option value="29">Bouvet Island</option>
                                <option value="30">Brazil</option>
                                <option value="31">British Indian Ocean Territory</option>
                                <option value="32">Brunei Darussalam</option>
                                <option value="33">Bulgaria</option>
                                <option value="34">Burkina Faso</option>
                                <option value="35">Burundi</option>
                                <option value="36">Cambodia</option>
                                <option value="37">Cameroon</option>
                                <option value="38">Canada</option>
                                <option value="39">Cape Verde</option>
                                <option value="40">Cayman Islands</option>
                                <option value="41">Central African Republic</option>
                                <option value="42">Chad</option>
                                <option value="43">Chile</option>
                                <option value="44">China</option>
                                <option value="45">Christmas Island</option>
                                <option value="46">Cocos (Keeling) Islands</option>
                                <option value="47">Colombia</option>
                                <option value="48">Comoros</option>
                                <option value="49">Congo</option>
                                <option value="50">Cook Islands</option>
                                <option value="51">Costa Rica</option>
                                <option value="52">Cote D&#39;Ivoire</option>
                                <option value="53">Croatia</option>
                                <option value="54">Cuba</option>
                                <option value="55">Cyprus</option>
                                <option value="56">Czech Republic</option>
                                <option value="57">Denmark</option>
                                <option value="58">Djibouti</option>
                                <option value="59">Dominica</option>
                                <option value="60">Dominican Republic</option>
                                <option value="61">East Timor</option>
                                <option value="62">Ecuador</option>
                                <option value="63">Egypt</option>
                                <option value="64">El Salvador</option>
                                <option value="65">Equatorial Guinea</option>
                                <option value="66">Eritrea</option>
                                <option value="67">Estonia</option>
                                <option value="68">Ethiopia</option>
                                <option value="69">Falkland Islands (Malvinas)</option>
                                <option value="70">Faroe Islands</option>
                                <option value="71">Fiji</option>
                                <option value="72">Finland</option>
                                <option value="73">France</option>
                                <option value="74">France, Metropolitan</option>
                                <option value="75">French Guiana</option>
                                <option value="76">French Polynesia</option>
                                <option value="77">French Southern Territories</option>
                                <option value="78">Gabon</option>
                                <option value="79">Gambia</option>
                                <option value="80">Georgia</option>
                                <option value="81">Germany</option>
                                <option value="82">Ghana</option>
                                <option value="83">Gibraltar</option>
                                <option value="84">Greece</option>
                                <option value="85">Greenland</option>
                                <option value="86">Grenada</option>
                                <option value="87">Guadeloupe</option>
                                <option value="88">Guam</option>
                                <option value="89">Guatemala</option>
                                <option value="90">Guinea</option>
                                <option value="91">Guinea-bissau</option>
                                <option value="92">Guyana</option>
                                <option value="93">Haiti</option>
                                <option value="94">Heard and Mc Donald Islands</option>
                                <option value="95">Honduras</option>
                                <option value="96">Hong Kong</option>
                                <option value="97">Hungary</option>
                                <option value="98">Iceland</option>
                                <option value="99">India</option>
                                <option value="100">Indonesia</option>
                                <option value="101">Iran (Islamic Republic of)</option>
                                <option value="102">Iraq</option>
                                <option value="103">Ireland</option>
                                <option value="104">Israel</option>
                                <option value="105">Italy</option>
                                <option value="106">Jamaica</option>
                                <option value="107">Japan</option>
                                <option value="108">Jordan</option>
                                <option value="109">Kazakhstan</option>
                                <option value="110">Kenya</option>
                                <option value="111">Kiribati</option>
                                <option value="112">Korea, Democratic People&#39;s Republic of</option>
                                <option value="113">Korea, Republic of</option>
                                <option value="114">Kuwait</option>
                                <option value="115">Kyrgyzstan</option>
                                <option value="116">Lao People&#39;s Democratic Republic</option>
                                <option value="117">Latvia</option>
                                <option value="118">Lebanon</option>
                                <option value="119">Lesotho</option>
                                <option value="120">Liberia</option>
                                <option value="121">Libyan Arab Jamahiriya</option>
                                <option value="122">Liechtenstein</option>
                                <option value="123">Lithuania</option>
                                <option value="124">Luxembourg</option>
                                <option value="125">Macau</option>
                                <option value="126">Macedonia, The Former Yugoslav Republic of</option>
                                <option value="127">Madagascar</option>
                                <option value="128">Malawi</option>
                                <option value="129">Malaysia</option>
                                <option value="130">Maldives</option>
                                <option value="131">Mali</option>
                                <option value="132">Malta</option>
                                <option value="133">Marshall Islands</option>
                                <option value="134">Martinique</option>
                                <option value="135">Mauritania</option>
                                <option value="136">Mauritius</option>
                                <option value="137">Mayotte</option>
                                <option value="138">Mexico</option>
                                <option value="139">Micronesia, Federated States of</option>
                                <option value="140">Moldova, Republic of</option>
                                <option value="141">Monaco</option>
                                <option value="142">Mongolia</option>
                                <option value="143">Montserrat</option>
                                <option value="144">Morocco</option>
                                <option value="145">Mozambique</option>
                                <option value="146">Myanmar</option>
                                <option value="147">Namibia</option>
                                <option value="148">Nauru</option>
                                <option value="149">Nepal</option>
                                <option value="150">Netherlands</option>
                                <option value="151">Netherlands Antilles</option>
                                <option value="152">New Caledonia</option>
                                <option value="153">New Zealand</option>
                                <option value="154">Nicaragua</option>
                                <option value="155">Niger</option>
                                <option value="156">Nigeria</option>
                                <option value="157">Niue</option>
                                <option value="158">Norfolk Island</option>
                                <option value="159">Northern Mariana Islands</option>
                                <option value="160">Norway</option>
                                <option value="161">Oman</option>
                                <option value="162">Pakistan</option>
                                <option value="163">Palau</option>
                                <option value="164">Panama</option>
                                <option value="165">Papua New Guinea</option>
                                <option value="166">Paraguay</option>
                                <option value="167">Peru</option>
                                <option value="168">Philippines</option>
                                <option value="169">Pitcairn</option>
                                <option value="170">Poland</option>
                                <option value="171">Portugal</option>
                                <option value="172">Puerto Rico</option>
                                <option value="173">Qatar</option>
                                <option value="174">Reunion</option>
                                <option value="175">Romania</option>
                                <option value="176">Russian Federation</option>
                                <option value="177">Rwanda</option>
                                <option value="178">Saint Kitts and Nevis</option>
                                <option value="179">Saint Lucia</option>
                                <option value="180">Saint Vincent and the Grenadines</option>
                                <option value="181">Samoa</option>
                                <option value="182">San Marino</option>
                                <option value="183">Sao Tome and Principe</option>
                                <option value="184">Saudi Arabia</option>
                                <option value="185">Senegal</option>
                                <option value="186">Seychelles</option>
                                <option value="187">Sierra Leone</option>
                                <option value="188">Singapore</option>
                                <option value="189">Slovakia (Slovak Republic)</option>
                                <option value="190">Slovenia</option>
                                <option value="191">Solomon Islands</option>
                                <option value="192">Somalia</option>
                                <option value="193">South Africa</option>
                                <option value="194">South Georgia and the South Sandwich Islands</option>
                                <option value="195">Spain</option>
                                <option value="196">Sri Lanka</option>
                                <option value="197">St. Helena</option>
                                <option value="198">St. Pierre and Miquelon</option>
                                <option value="199">Sudan</option>
                                <option value="200">Suriname</option>
                                <option value="201">Svalbard and Jan Mayen Islands</option>
                                <option value="202">Swaziland</option>
                                <option value="203">Sweden</option>
                                <option value="204">Switzerland</option>
                                <option value="205">Syrian Arab Republic</option>
                                <option value="206">Taiwan</option>
                                <option value="207">Tajikistan</option>
                                <option value="208">Tanzania, United Republic of</option>
                                <option value="209">Thailand</option>
                                <option value="210">Togo</option>
                                <option value="211">Tokelau</option>
                                <option value="212">Tonga</option>
                                <option value="213">Trinidad and Tobago</option>
                                <option value="214">Tunisia</option>
                                <option value="215">Turkey</option>
                                <option value="216">Turkmenistan</option>
                                <option value="217">Turks and Caicos Islands</option>
                                <option value="218">Tuvalu</option>
                                <option value="219">Uganda</option>
                                <option value="220">Ukraine</option>
                                <option value="221">United Arab Emirates</option>
                                <option value="222">United Kingdom</option>
                                <option value="223">United States</option>
                                <option value="224">United States Minor Outlying Islands</option>
                                <option value="225">Uruguay</option>
                                <option value="226">Uzbekistan</option>
                                <option value="227">Vanuatu</option>
                                <option value="228">Vatican City State (Holy See)</option>
                                <option value="229">Venezuela</option>
                                <option value="230">Viet Nam</option>
                                <option value="231">Virgin Islands (British)</option>
                                <option value="232">Virgin Islands (U.S.)</option>
                                <option value="233">Wallis and Futuna Islands</option>
                                <option value="234">Western Sahara</option>
                                <option value="235">Yemen</option>
                                <option value="236">Yugoslavia</option>
                                <option value="237">Zaire</option>
                                <option value="238">Zambia</option>
                                <option value="239">Zimbabwe</option>
                            </select>
                          </div>
                                  </div>
                                 <div class="formcentering">
                                   <label for="wlpeUserRegisterDob"><span class="textback">Date of birth(DD-MM-YYYY)</span><div class="text_input2" id="text_input2"><input type="text" name="dob" id="wlpeUserRegisterDob" value="[+post.dob+]" /></div></label>
                      	    </div> 
                                  <div class="formcentering">
                      			<label for="wlpeUserRegisterComment">Comment/Signature
                                  <div class="textfield0"></div>
                      			<div class="textfield1"><textarea id="wlpeUserRegisterComment" name="comment">[+post.comment+]</textarea></div>
                                  <div class="textfield2"></div>
                      			</label>
                      			</div>
                                  <div class="formcentering">
                      			<img id="wlpeCaptchaImage" src="[+form.captcha+]" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." />
                      			</div>
                                  <div class="formcentering">
                      			<label for="wlpeUserRegisterCaptcha" id="wlpeCaptchaLabel"><span class="required">*</span>Please enter the code in the image.
                      			<input type="text" id="wlpeUserRegisterCaptcha" name="formcode" >
                      			</label>
                      			
                      			<p id="wlpeTermsOfServiceLabel"> Please read our<a href="[~78~]">Terms of Service/Privacy Policy</a> page before continuing.</p>
                      			<div id="wlpeTermsOfService"></div>
                      			
                      			<label for="wlpeTosCheckbox" id="wlpeTosCheckboxLabel"><span class="required">*</span>I accept the Terms of Service
                      				<input type="checkbox" id="wlpeTosCheckbox" name="tos" />
                      			</label>
                      			</div>
                      	  </div>
                              
                      		<div id="wlpeUserRegisterButtons">
                              <div class="formcentering6">
                              <div class="labelcontainer4">
                      			<button type="submit" class="subscriptionbutton3" id="wlpeSaveRegisterButton" name="service" value="register">Register</button>
                                  </div>
                              <div class="labelcontainer_smallnexttobig">
                      			<button type="submit" class="subscriptionbutton" id="wlpeCancelRegisterButton" name="service" value="cancel">Cancel</button>
                                  </div>
                                  </div>
                      		</div>
                      	</form>
                      </div>