Page 1 of 1

Information lost on PHP load self

Posted: Tue May 13, 2003 3:19 pm
by Templeton Peck
Hi.

I have a submit button on a form thats action is to $_SERVER['PHP_SELF'];
load its self. Its so everytime the submit button is hit it refreshes to show that the new table row that is added after each button press. Problem is anything typed in the form fields before you pressed the button , disappears after you do hit the button. Anyway I can make it so that it refreshes to reflect the new row added and retain the previous values?

thank you :)

Posted: Tue May 13, 2003 3:37 pm
by volka
submit requests a completely new document. If you want to keep the values entered previously you have to print the values that shipped with this new request (via GET/POST)

Posted: Tue May 13, 2003 3:45 pm
by Templeton Peck
Thanks, I had a feeling that was the way it was going to be, but better to be sure.