I’m trying to get UpdateProfile working properly, it is mostly, but the form fields do not update when the user submits the form. The database updates & if I clear the cache the fields will then update on a reload...
- I have ALL caching turned off! [set all yes/no options to no & set all ttls to zero]
here is the UpdateProfile call:
[[!UpdateProfile?
&submitVar=`login-updprof-btn`
&useExtended=`false`
&validate=`fullname:required,email:required:email`
&redirectToLogin=`1`
&reloadOnSuccess=`1`
]]
[[!$lgnCustomUpdateProfileTpl]]
and the profile form itself:
<div class="update-profile">
<h3>Update your profile</h3>
<!-- [[+login.update_success:if=`[[+login.update_success]]`:is=`1`:then=`<h4>[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]</h4>`:else=`some copy`]] -->
<form class="loginform" action="[[~[[*id]]]]" method="post" name="updatemyprofile">
<ul>
<input type="hidden" name="nospam:blank" value="" />
<li class="message errors"><label> </label>
[[!+error.message]]
</li>
<li>
<label for="fullname">[[!%login.fullname? &namespace=`login` &topic=`updateprofile`]]</label>
<input type="text" name="fullname" id="fullname" value="[[+fullname]]" />[[!+error.fullname]]
</li>
<li>
<label for="email">[[!%login.email]] </label>
<input type="text" name="email" id="email" value="[[+email]]" />[[!+error.email]]
</li>
<li>
<label for="phone">[[!%login.phone]]</label>
<input type="text" name="phone" id="phone" value="[[+phone]]" />[[!+error.phone]]
</li>
<li>
<label for="mobilephone">[[!%login.mobilephone]]</label>
<input type="text" name="mobilephone" id="mobilephone" value="[[+mobilephone]]" />[[!+error.mobilephone]]
</li>
<li>
<label for="fax">[[!%login.fax]]</label>
<input type="text" name="fax" id="fax" value="[[+fax]]" />[[!+error.fax]]
</li>
<li>
<label for="address">[[!%login.address]]</label>
<input type="text" name="address" id="address" value="[[+address]]" />[[!+error.address]]
</li>
<li>
<label for="country">[[!%login.country]]</label>
<input type="text" name="country" id="country" value="[[+country]]" />[[!+error.country]]
</li>
<li>
<label for="city">[[!%login.city]]</label>
<input type="text" name="city" id="city" value="[[+city]]" />[[!+error.city]]
</li>
<li>
<label for="state">[[!%login.state]]</label>
<input type="text" name="state" id="state" value="[[+state]]" />[[!+error.state]]
</li>
<li>
<label for="zip">[[!%login.zip]] </label>
<input type="text" name="zip" id="zip" value="[[+zip]]" />[[!+error.zip]]
</li>
<li>
<label for="website">[[!%login.website]] </label>
<input type="text" name="website" id="website" value="[[+website]]" />[[!+error.website]]
</li>
<li>
<label> </label>
<input type="submit" name="login-updprof-btn" value="[[!%login.update_profile]]" />
</li>
</ul>
</form>
</div>
What’s going on here?? I don’t see the problem.
PS> I’ve also tried all my form fields as both: value="[[+fullname]]" & value="[[!+fullname]]"
-sean
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525