Jump to content

perl cgi passing @list between forms/pages/scripts


Recommended Posts

print header,start_html("Modules");

print start_form({action=>'http://localhost/cgi-bin/p4q2b.cgi'});



@modules=("Development","Networks ","Professional Issues");



for($item = 0; $item<$#modules+1;$item++){

 print "<input type ="radio" name ="module" value =$item>",$modules[$item] ,br;

   

}

 

Should be easy but Im tearing my hair out!

 

This is a simple form consisting of radio buttons posting information to a perl/cgi script which does a little processing. Picka a codenumber from another array which corresponds to the selected module.

 

I'd like to pass @modules to the other script so that I could display code and title at the same time.

 

So how do I pass a list between scripts I've already tried a hidden field but either I'm doing something wrong (very probably) or it just doesn't work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...