On Wed, 22 Oct 2003, mark o' sullivan wrote:
> Anyone know is it possible to get a string from a drop-down menu in a form
> and pass it from one perl script to another.
> The way it currently is:
> Script 1:
> print "<select name=task>";
> while(my ($task)= $sth->fetchrow_array)
> print "<option value=$task>$task</option>";
> print "</select>";
> Script 2:
> $task = param("task");
> I only get the first part of the $task string read in from the drop-down
> Example '$task' strings:
> (1)Caching the browser.
> (2)DSL to RSA conversion.
> What I'm getting:
> Any alternatives for param to read strings?
I feel for you, I really do. But this question (despite the
$sth->fetchrow_array portion above, which I think you know is not
causing your problem) is off-topic for this list (the topic of which
is things specific to the relationship between Perl and MySQL).
Posting off-topic questions (and responses to off-topic questions)
just waters down a list like this and ultimately makes it less
useful (due to the OT clutter).
Never fear, though. All is not lost. There are places where the
asking of this question would not be OT and where you would find
lots of folks who would answer your question. The first place I'd
try is perlmonks.org. You might also find a list related to Perl
and CGI to ask your question.
Best of luck!
Dave Cash Power to the People!
Frolicking in Fields of Garlic Right On-Line!
dave@stripped Dig it all.