Aaron Posted January 13, 2012 Report Share Posted January 13, 2012 I configured the edit profile with the fields I want, but when you hit the submit button, It brings you to the pilotcenter and it says profile saved, but the profile didn't acctualy save. Can someone help me please, I searched and found similar topics, but they weren't answered. I think it's the form action, not sure though. <h3>Edit Profile</h3> <form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data"> <dl> <dt>Name</dt> ;... form part looks fine <dt></dt> <dd><input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" value="Save Changes" /></dd> </dl> </form> Quote Link to comment Share on other sites More sharing options...
Aaron Posted January 13, 2012 Author Report Share Posted January 13, 2012 I fixed it Replace the code at the very bottom of editprofile.tpl with this code. It looks very similar, just an extra line at the top. <input type="hidden" name="pilotid" value="<?php echo $pilotinfo->pilotid;?>" /> <input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" value="Save Changes" /> Quote Link to comment Share on other sites More sharing options...
Aaron Posted January 13, 2012 Author Report Share Posted January 13, 2012 Correction, it's the profile_edit.tpl you need to replace it in Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.