I am creating a memberarea with WebloginPE. But i have a very weird "bug". When i go to the edit profile page.
And I typ a new Full Name or change the password, the new values aren’t stored in the db. The old values are changed at all.
I get redirected to the webloginPE homepage, without any system message.
I haven’t changed anything in the source code. I only changed a little HTML in the tpl.
Snippetcall:
[!WebLoginPE? &lang=`nl` &type=`simple` &loHomeId=`1` &loginFormTpl=`loginFormTpl` &successTpl=`successTpl` &profileTpl=`profileTpl` &viewProfileTpl=`viewProfileTpl`!]
profiletpl:
[+wlpe.message+]
<div id="wlpeUser">
<form enctype="multipart/form-data" id="wlpeUserProfileForm" action="[~132~]" method="POST">
<fieldset id="wlpeUserProfileInput">
<div id="wlpeUserInfo">
<h3 id="wlpeProfileWelcome">Welkom [+user.fullname+] ([+user.username+])!</h3>
<p id="wlpeProfileInfo" class="info">Gebruik deze pagina om uw gegevens aan te passen.</p>
</div>
<legend>
Uw profiel<br />
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="14%"><label for="wlpeUserProfileFullName">Volledige naam</label></td>
<td width="86%"><input id="wlpeUserProfileFullName" type="text" name="fullname" value="[+user.fullname+]" /></td>
</tr>
<tr>
<td><label for="wlpeUserProfileEmail">Email</label></td>
<td><input id="wlpeUserProfileEmail" type="text" name="email" value="[+user.email+]" /></td>
</tr>
</table>
</legend>
<fieldset id="wlpeNewPasswordArea">
<legend id="wlpeNewPasswordAreaLegend">Wijzig uw wachtwoord </legend>
<p id="wlpeNewPasswordInfo">Hier kunt u uw wachtwoord wijzigen <br />
<span class="info">(Laat het leeg indien u niks wilt wijzigen)</span></p>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="17%"><label for="wlpeUserProfilePassword">Nieuw wachtwoord</label></td>
<td width="83%"><input id="wlpeUserProfilePassword" type="password" name="password" value="" /></td>
</tr>
<tr>
<td><label for="wlpeUserProfilePasswordConfirm">Nieuw wachtwoord (bevestiging)</label></td>
<td><input id="wlpeUserProfilePasswordConfirm" type="password" name="password.confirm" value="" /></td>
</tr>
</table>
</fieldset>
</fieldset>
<fieldset id="wlpeUserProfileButtons">
<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveprofile">Opslaan</button>
<button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Terug</button>
<button type="submit" id="wlpeProfileLogoutButton" name="service" value="logout">Uitloggen</button>
</fieldset>
</form>
</div>
As you can see i have only changed the language and removed some fields.
Also i changed the ACTION="" from [*id*] to the actual ID, because i thought it might not work with friendly urls...