List:MySQL and Perl« Previous MessageNext Message »
From:Dave Cash Date:October 22 2003 3:48pm
Subject:Re: [perl-mysql] form parameter passing
View as plain text  
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
> menu.
> Example '$task' strings:
> (1)Caching the browser.
> (2)DSL to RSA conversion.
> 
> What I'm getting:
> (1)Caching
> (2)DSL
> 
> Any alternatives for param to read strings?

Dude,

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

/L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\
Dave Cash                              Power to the People!
Frolicking in Fields of Garlic               Right On-Line!
dave@stripped                                  Dig it all.

Thread
form parameter passingmark o' sullivan22 Oct
  • Re: [perl-mysql] form parameter passingDave Cash22 Oct
Re: form parameter passingLeif W22 Oct