CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Edit a Web Page



Apr 7, 2001, 6:49 AM

Post #1 of 3 (1755 views)
Edit a Web Page Can't Post

I have built a prog which makes a web page (file) from information (a poem, title, author etc.) that a user enters in a form. Next it displays that info by reading the file created. Now I would like to give the user the option of going back and editing or accepting this HTML page. Since the entered info is a form, the easiest way would be delete the file then hop a page back in his browser. Javascript:History(-1) solves the back problem BUT How can one delete the HTML file BEFORE the javascript is executed? (Accepting the poem simply takes the user to the "Thanks" html page.)


Apr 9, 2001, 9:41 AM

Post #2 of 3 (1742 views)
Re: Edit a Web Page [In reply to] Can't Post

I'm not in the html business and I'm sure it's not the best solution,
but since nobody has posted anything, here is what IMO can be done:
Call some external file that will sleep($delay) and then delete the file.
In the meanwhile you will be able to execute Javascript:History(-1) or whatever...

Jean Spector
QA Engineer @ Extent Technologies, Ltd.


Apr 12, 2001, 1:59 PM

Post #3 of 3 (1734 views)
Re: Edit a Web Page [In reply to] Can't Post

Perhaps I misunderstood your question, but I question your need to delete the file in the first place. If you just use your javascript back, you can just write over the html file when the form gets resubmitted. If they resubmit with changes, just remake the file as you would if it never existed.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives