Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Hi, this is weird, i have created a session that will pass variables to another page, i used the code below :
i used <form action='$_SERVER[PHP_SELF]' method='post'> as the form action
page 1
when i open the browser, username was not displayed but when i click back button on the browser and submit again, username and other info was displayed....
is there anyway to solve this problem? thanks a lot!
the values of username, group and process comes from a form field which a user enters the data, what i mean is when the user submits the data on the form using page 1, this is when i opened IE for the first time, the values of username, group and process was not displayed..... but when i click the back button and enter the same data... those info were displayed.....
ok, ill show the code... should i reply still on this thread....? This is really wierd actually, i have already made this thing working.. i really cant explain why it has gone wrong...
when i open the URL for the first time, the forms will appear, i will enter the data and submit the form, the second page displays nothing.... but when i click back button of IE then re submit the data, those info were now displayed.... thanks so much for the help....
actually im not only going to send these variable on the second page, i have to use these data for some query and addition procedures.... i just need these 3 data as inputs from the user... from there i can manipulate some procedures....
actually i have already done that, i just made the header redirecting to index2.php without the $sid=$id.... but still the ssame, variables are only passed to the next page whenever i click the back button of IE and reenter the same data...