H
hi5
Guest
hello,
i'm trying to write a something.pl.cgi script, which prints certain html forms depending on the user input. i start with an html that calls my pl.cgi script with <img src=...>. if nothing has been passed over GET, then the html is a form with one text box and a submit button. when the user enters something into the first text box and presses submit, i want there to be a new form that shows up, say with 2 text boxes and a submit button. i tried making these different forms into subroutines, and calling them depending on the inputs that have been taken from the GET query and parsed. i.e. check to see if the user input is valid by parsing, and showing a new form if it is valid.
the problem i am having is that the new form shows up on the same page as the previous form. however, i basically want to call the entire script again, and have it show ONLY the new form. i tried doing this by calling a subroutine that contains the html code for that form, but this is not doing the trick.
how can i call the cgi script again from the beginning, displaying only the html code i want?
thanks.
i'm trying to write a something.pl.cgi script, which prints certain html forms depending on the user input. i start with an html that calls my pl.cgi script with <img src=...>. if nothing has been passed over GET, then the html is a form with one text box and a submit button. when the user enters something into the first text box and presses submit, i want there to be a new form that shows up, say with 2 text boxes and a submit button. i tried making these different forms into subroutines, and calling them depending on the inputs that have been taken from the GET query and parsed. i.e. check to see if the user input is valid by parsing, and showing a new form if it is valid.
the problem i am having is that the new form shows up on the same page as the previous form. however, i basically want to call the entire script again, and have it show ONLY the new form. i tried doing this by calling a subroutine that contains the html code for that form, but this is not doing the trick.
how can i call the cgi script again from the beginning, displaying only the html code i want?
thanks.