Piping a Javascript prompt to a scalar
Kevin Creason
kevinc at gci.net
Fri Apr 2 17:07:37 CST 1999
I'm trying to pipe a javascript prompt into a scalar.
It goes like this:
the cgi prints the normal content-type yada yada yada
and then :
print "
<script>
prompt(\"User: \", \"\");
</script>
";
Which bring up a window before anything requesting input before a HTML
document would proceed.
How do I capture this into a scalar? Is there are better way to get a
username before a CGi proceeds?
I tried $scalar=(print all that stuff);
and $scalar=<STDIN>;
and $scalar=$ARGV[0];
Any ideas?
===============================================================
Mailing list info: If at any time you wish to (un|re)subscribe to the list send the
request to majordomo at hfb.pm.org. All requests should be in the body, and look
like such
subscribe anchorage-pm-list
unsubscribe anchorage-pm-list
More information about the Anchorage-pm
mailing list