Just to help you pose the question better, are your images being generated by a cgi script? Or can you just send out a simple form with ckickable buttons? You probably should read "perldoc CGI" and search for CREATING A CLICKABLE IMAGE BUTTON

So is this all going to be handled by a single cgi script? Or do you have a multiple cgi scripts handing everything?

The very basic thing you could do is send out a form, with 3 images, that upon clicking return different params to a cgi script.

#Here is some UNTESTED PSEUDOCODE to show the idea. There are 2 basi +c functions. One is send out the form, the second is to receive a res +ponse from the form and process it. My cgi is rusty, so anyone who ca +n fix the errors, please do. #!/usr/bin/perl use warnings; use strict; use CGI; my( $q ) = new CGI; print $q->header; print $q->start_html( -title=>"Test" ); print $q->start_form(-action=>'this_script.cgi); # Add images # image_button() produces a clickable image. When its clicked on the # position of the click is returned to your script as "button_name.x" + and # "button_name.y", where "button_name" is the name youve assigned to i +t. print $q->image_button(button_name1, /path/source/URL, MIDDLE); print $q->image_button(button_name2, /path/source/URL, MIDDLE); print $q->image_button(button_name3, /path/source/URL, MIDDLE); print $q->submit( -name=>'Choose Action', -label=>'Start Test' ); print $q->br; print $q->end_form; print $q->end_html; # this is where you detect which button is pressed if ( $q->param() ) { my $button = $query->param(); #probably need better param checking #use #@params=$query->param; #gets a list of all the names of the parameters passed to the script print "@params\n"; if ($button eq 'button_name1'){'do something'} if ($button eq 'button_name2'){'do something'} if ($button eq 'button_name3'){'do something'} }

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

In reply to Re: images for errors by zentara
in thread images for errors by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.