Information lost on PHP load self

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Information lost on PHP load self

Post 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 :)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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)
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Post by Templeton Peck »

Thanks, I had a feeling that was the way it was going to be, but better to be sure.
Post Reply