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...:
program that prints form and prints results on submit



May 22, 2000, 5:40 AM

Post #1 of 1 (1357 views)
program that prints form and prints results on submit Can't Post

I need a program that I can use in Html page as SSI inclode <!--include -->. The program should print out a form asking user to enter say date of birth. On submit the form should display a message based on date of birth on the same html page.On submit it should not redirect to any other page.. instead it should refresh the same html page.

I tried programming this and I was successful in first part.
For example, if the script is birthdate.cgi
and html page is test.shtml, this html page will have a <!-- include=\birthdate.cgi\-->
and when user loads test.shtml page it displays a form asking user to enter date of birth, I just have these form as print statements in the cgi script.
This part works perfectly fine.

But when user enters the date of birth and click SUBMIT, the browser is redirected to birthdate.cgi fiel itself and displays the the message that i want to display .

Please let me know where can i get a script/or how do i modify so that upon submit same html page is refreshed but the message displayed will be different .

Thanks, Vj


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

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