Jump to content

Edit Profile fix [solved]


Aaron

Recommended Posts

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>

Link to comment
Share on other sites

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" />

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...