Nik has asked for the wisdom of the Perl Monks concerning the following question:
andmy $gamename = param('gamename');
This is where the submit button is created and this is where i check if the user click on a gameprint start_form(-action=>'games.pl'); print table( {class=>'games'} ); while( $row = $sth->fetchrow_hashref ) { print Tr( td( {-width=>'20%'}, submit( $row->{gamename} )) +, td( {-width=>'75%'}, $row->{gamedesc} ), td( {-width=>'5%'}, $row->{gamecounter} ) ); } print end_table; print end_form;
but it never returns true! Do you think there is a confilct with the gamesnname as i have it in the submit button and expect the user to click on the desired game to download by passign it as a parameter to the script?if( param('gamename') )
20050516 Edit by castaway: Changed title from 'Maybe this causes the problem?'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Determining which CGI submit() button was pressed
by jasonk (Parson) on May 12, 2005 at 15:46 UTC | |
by Nik (Initiate) on May 12, 2005 at 15:56 UTC | |
|
Re: Determining which CGI submit() button was pressed
by davido (Cardinal) on May 12, 2005 at 15:56 UTC | |
| |
|
Re: Determining which CGI submit() button was pressed
by polettix (Vicar) on May 12, 2005 at 15:59 UTC | |
|