RE: clearing screen details from within script

2003-02-10 Thread James Macintyre
Hello ,
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 second time. I have tried using clear() but it tells me Undefined
subroutine &main::clear what is main sub procedure and how do I use it or
can anyone give me another way of clearing the screen output.

Any ideas and solutions would be appreciated

James



Re: clearing screen details from within script

2003-02-10 Thread Dave K
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]




SSL for LWP

2003-02-10 Thread Lance
What modules have to be installed for LWP::UserAgent to read SSL pages?  I
have been trying to install Crypt-SSLeay, but I keep getting the message:
'Error: no suitable installation target found for package Crypt-SSLeay.'

I am using ActiveState 5.6.1-build 633 on win XP

I have been trying to use ppm3 to do the install, is there a way to get it
to list dependances of modules you are trying to install?  The docs say that
it will automatically install dependant modules, but it does not seem to be
working for me!




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




mkdir will not work with a variable

2003-02-10 Thread Tom McKellips
How do I make mkdir work with a variable? I can put
mkdir '/mydir'; in a cgiscript and it will work perfect every time but if I 
use a variable
mkdir $mydir; it will never work 
It does not appear to make any difference how I place " or ' or anything 
else. I have tested the variable to make sure it contains the info I want 
using the print statement and it is correct every time. It just will not 
create a directory I even set the parent directory to 777 still with no luck. 
Any suggestions?

Thanks
Tom

--
Internet Service Provided By Abyss Communications
A leader in Dial up and Satellite Internet Access
1-866-842-2977

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




Re: mkdir will not work with a variable

2003-02-10 Thread Wiggins d'Anconia
Tom McKellips wrote:

How do I make mkdir work with a variable? I can put
mkdir '/mydir'; in a cgiscript and it will work perfect every time but if I 
use a variable
mkdir $mydir; it will never work 
It does not appear to make any difference how I place " or ' or anything 
else. I have tested the variable to make sure it contains the info I want 
using the print statement and it is correct every time. It just will not 
create a directory I even set the parent directory to 777 still with no luck. 
Any suggestions?


Are you running under 'taint' mode?

What error is given?  Something like the following will help:

mkdir '/tmp/directory' or die "Can't make directory: $!";

$! stores the error message set by a failing mkdir (or other system calls)

Are you sure the user running the web server has permission to write the 
new directory, just because you can doesn't mean that user can?  Is 
there anything in the error log?  (I am assuming this is CGI related)

http://danconia.org


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