This has nothing to do with PHP.
The default view template for the registration form is:
[+wlpe.message+]
<div id="wlpeNewUser">
<form id="wlpeUserRegisterForm" action="[~[*id*]~]" method="POST" enctype="multipart/form-data">
<fieldset id="wlpeUserRegisterInput">
<div id="wlpeNewUserInfo">
<p id="wlpeRegisterInfo">Use this form to register for a new user account.<br />
<span class="info">Filds marked with <span class="required">*</span> are required.</span>
</p>
</div>
<legend>Register for a new user account</legend>
<label for="wlpeUserRegisterEmail"><span class="required">*</span> Email
<input id="wlpeUserRegisterEmail" type="text" name="email" value="[+post.email+]" />
</label>
<label for="wlpeUserRegisterUserName"><span class="required">*</span> Desired User Name
<input id="wlpeUserRegisterUserName" type="text" name="username" value="[+post.username+]" />
</label>
<label for="wlpeUserRegisterFullName"><span class="required">*</span> Full Name
<input id="wlpeUserRegisterFullName" type="text" name="fullname" value="[+post.fullname+]" />
</label>
<label for="wlpeUserRegisterPassword"><span class="required">*</span> Password
<input id="wlpeUserRegisterPassword" type="password" name="password" value="[+post.password+]" />
</label>
<label for="wlpeUserRegisterPasswordConfirm"><span class="required">*</span> Password (confirm)
<input id="wlpeUserRegisterPasswordConfirm" type="password" name="passwordconfirm" value="[+post.passwordconfirm+]" />
</label>
<label for="wlpeUserRegisterPhone">Phone number
<input id="wlpeUserRegisterPhone" type="text" name="phone" />
</label>
<label for="wlpeUserRegisterMobile">Mobile number
<input id="wlpeUserRegisterMobile" type="text" name="mobilephone" value="[+post.mobilephone+]" />
</label>
<label for="wlpeUserRegisterFax">Fax number
<input id="wlpeUserRegisterFax" type="text" name="fax" value="[+post.fax+]" />
</label>
<label for="wlpeUserRegisterState">State
<input id="wlpeUserRegisterState" type="text" name="state" value="[+post.state+]" />
</label>
<label for="wlpeUserRegisterZip">Zip Code
<input id="wlpeUserRegisterZip" type="text" name="zip" value="[+post.zip+]" />
</label>
[+form.country+]
<label for="wlpeUserRegisterDob">Date of birth <span class="info">(DD-MM-YYYY)</span>
<input id="wlpeUserRegisterDob" type="text" name="dob" value="[+post.dob+]" />
</label>
[+form.gender+]
<img id="wlpeUserDefaultImage" src="[+user.defaultphoto+]" alt="Default User Image" title="Default User Image" height="100" width="100" />
<label for="wlpeUserProfilePhoto" id="photolabel">User Photo
<input id="wlpeUserProfilePhoto" type="file" name="photo" />
</label>
<p id="wlpeUserProfilePhotoInfo" class="info">No bigger than 100kb. will be resized to 100 x 100.</p>
<label for="wlpeUserRegisterComment">Comment/Signature
<textarea id="wlpeUserRegisterComment" name="comment">[+post.comment+]</textarea>
</label>
<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." />
<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">Terms of Service/Privacy Policy</p>
<div id="wlpeTermsOfService">[+tos+]</div>
<label for="wlpeTosCheckbox" id="wlpeTosCheckboxLabel"><span class="required">*</span>I accept the Terms of Service
<input type="checkbox" id="wlpeTosCheckbox" name="tos" />
</label>
</fieldset>
<fieldset id="wlpeUserRegisterButtons">
<button type="submit" id="wlpeSaveRegisterButton" name="service" value="register">Register</button>
<button type="submit" id="wlpeCancelRegisterButton" name="service" value="cancel">Cancel</button>
</fieldset>
</form>
</div>
This is in the Default Forms folder of the unzipped archives, the file named defaultRegisterInstantFormTpl.html.txt
The default view templates in this case are not in the database, but are in the Default Forms folder. I prefer to leave those alone and use a chunk instead.
Create a new chunk in the Manager, Resources->Manage Resources, the Chunks tab. Copy/paste the text from the above .txt file into the chunk. Now in your snippet call on the page where you want the form to appear, put ®isterTpl=`theNameofYourChunk` (note that those are backticks, not single quotes) to tell WebLoginPE what to use for the form. At this point you should be able to view the page and not see any difference.
Now, edit that HTML in the chunk until the form is the way you want it. Check from time to time to make sure nothing is totally broken.
The [+...+] placeholders are described in the "Placeholders" section of the documentation (the Docs folder in the unzipped archive). For example, the [+tos+] placeholder will insert the TOS template in that spot. So if you don’t want that, just leave it out of your form.