p1kn1c
02-26-2007, 02:39 AM
Hi i have this bug in my perl program.
Bassicaly There is a form that collects data from the user. That data is sent by POST. The data is written to a txt file. A hidden input is also sent called "mode" which determines which html file the cgi program will write.
So if your on the form and Submit mode="submit". Then the CGI program (written in perl) Calls a function to print a HTML file which shows all the records that have been submitted.
This page shows all records that have been submitted in tabular form. Each record also has a EDIT button. If you click that you go to the form again and can edit the data. Then you submit that form again and it prints the summary again.
The problem is that after i EDIT a record it doesnt update when i go back to the summary page at first. I have to refresh the page (Which tells me there is post data and if i want to refresh it) If i click yes then all the records become uptodate.
So my problem is The information isnt being updated unless I actually refresh the page.. which i cant figure out.
I know this may not make alot of sense but im just wondering if anyone has any idea what it could be.
The program works as i expect...Its just that when I edit a record, which returns me to the Summary page the the record is not updated untill I refresh the page.
IF noone knows what im trying to say (which is likely) I will try to upload my program and show you.
Thanks for any help.
Bassicaly There is a form that collects data from the user. That data is sent by POST. The data is written to a txt file. A hidden input is also sent called "mode" which determines which html file the cgi program will write.
So if your on the form and Submit mode="submit". Then the CGI program (written in perl) Calls a function to print a HTML file which shows all the records that have been submitted.
This page shows all records that have been submitted in tabular form. Each record also has a EDIT button. If you click that you go to the form again and can edit the data. Then you submit that form again and it prints the summary again.
The problem is that after i EDIT a record it doesnt update when i go back to the summary page at first. I have to refresh the page (Which tells me there is post data and if i want to refresh it) If i click yes then all the records become uptodate.
So my problem is The information isnt being updated unless I actually refresh the page.. which i cant figure out.
I know this may not make alot of sense but im just wondering if anyone has any idea what it could be.
The program works as i expect...Its just that when I edit a record, which returns me to the Summary page the the record is not updated untill I refresh the page.
IF noone knows what im trying to say (which is likely) I will try to upload my program and show you.
Thanks for any help.