I have a html form … While submitting that form, I am calling one Perl CGI Script, that will save the data in MYSQL database.
After saving the data in databse, i want to reopen the same page with all empty fields in form, means i want too reload the same form again.
How can i achieve this? or what should i call in my script so that i can come back to same form again.
Remember i am generating the forms using template and perl script..
Thanks in advance
You can redirect using HTML’s
meta refreshor by using JavaScript’swindow.locationobject. Have the CGI script output any of those.Another way is to have the CGI script output a redirect header. You can use
CGI‘sredirectmethod for this, or output it manually.