James,
> I am writing a members registration perl script , and I want to be able to
> clear the html output so that another form page can be displayed once the
> form has been filled in and the values processed. ie when the script
passed
The browser will not behave like a terminal screen. You will need to provide
a means to submit the data
on the (displayed) form then create a new html page
> I have tried using clear() but it tells me Undefined
> subroutine &main::clear what is main sub procedure
Perl is looking for the subroutine you have asked to employ { clear() }. It
follows a procedure similar to:
1 - Check the current 'package' (in this case the cgi script is the current
package and is labeled 'main' by perl.
2 - Check for a sub named clear in the packages 'used' by the current
package, and packages 'used' by those packages,
in a specific order (left to right, depth first I believe) until it finds
the sub. If it is not found:
3 - check in the parent of all packages (actually a class called Universal).

If the sub is not found then you get the error you have.

I came to think of html pages as sheets of paper, on which erasure was not
allowed. Once the page is displayed to the browser (with the exception of
fields designed for user input and fun tricks with javascript) the State of
the page is fixed and you cannot change it (excluding the adition of user
input and the effects of scripting languages designed to supplement the
basic html).
You probably want to:
Display the first form, including a submit button to call another cgi script
which will process the input collected so far then display a second form.
Remember the second script must first process the input of the first scripts
form or that information is likely to be lost when the second form is
submitted.
HTH



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to