in reply to CGI question: elegant way to have three form image buttons doing different things?
Have your image submits with the same name and place a value:
<input type="image" name="action" value="invite" alt="Invite" src="inv +ite.gif"> <br> <input type="image" name="action" value="view" alt="View Results" src= +"view.gif"> <br> <input type="image" name="action" value="leave" alt="Leave" src="exit. +gif">
then you test that value in your script:
my $action = $cgi->param('action'); if ($action eq 'invite') { # invite code } elsif ($action eq 'view') { # view ... ..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: CGI question: elegant way to have three form image buttons doing different things?
by t'mo (Pilgrim) on Sep 13, 2001 at 17:27 UTC |