How to retain variables when "reseting" a form?
Posted: Fri Sep 20, 2013 1:26 am
Hi,
Hopefully my title isn't too misleading, but I will explain my situation.
I am currently helping some acquaintances with managing their site as they don't officially have people to do it. I don't really know php and anything I know about it, I learned by trial and error in the last month. So my situation involves this:
I have a form involving various drop downs and text boxes for the user to fill information for a specific user such that the site url is something like "site.com/achievement.php?user_id=11user".
After the user is done inputting the data, they press a submit button which then pretty much takes all the data inputted and redisplays it and gives the user a confirm button. On this page, there is a modify button, which is supposed to let the user go back to the previous screen to modify anything, however whoever implemented this currently has it working like the following:
What it did was it goes back to the previous page for the user to put in the info, however it does not retain any of the fields that were filled before and even forgets the specific user the data is for ("site.com/achievement.php").
What I want to know how to do is how can I create the button such that it can remember all these things?
Sorry if I sound like I have no idea what I am talking about. Because I really don't :s
Hopefully my title isn't too misleading, but I will explain my situation.
I am currently helping some acquaintances with managing their site as they don't officially have people to do it. I don't really know php and anything I know about it, I learned by trial and error in the last month. So my situation involves this:
I have a form involving various drop downs and text boxes for the user to fill information for a specific user such that the site url is something like "site.com/achievement.php?user_id=11user".
After the user is done inputting the data, they press a submit button which then pretty much takes all the data inputted and redisplays it and gives the user a confirm button. On this page, there is a modify button, which is supposed to let the user go back to the previous screen to modify anything, however whoever implemented this currently has it working like the following:
Code: Select all
echo "<form name='achievement_modify' method='post' action='".$_SERVER['PHP_SELF']."'>";What I want to know how to do is how can I create the button such that it can remember all these things?
Sorry if I sound like I have no idea what I am talking about. Because I really don't :s