CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
how to insert a text feild and radio button inside a cgi table?

 



aurora
Novice

Mar 29, 2012, 5:28 AM

Post #1 of 1 (903 views)
how to insert a text feild and radio button inside a cgi table? Can't Post

Hi all,
I created a table using cgi as shown below.....
In particular cell of that table i want to insert text field and radio button....how can i do that?

my present code is:


Code
print $q->start_table({border=>5,width=>800}); 
my @headers=("ID", "TITLE","STATUS","UNITS","EFFORT","UNIT EFFORT","PHASE","% COMPLETION","SUB BRANCH","CHECKED IN","TREND","WAITING FOR DEPENDENCY");
my @row;
print $q->th([@headers]);

while($hsd_db->read())
{ @row=();
$id= $hsd_db->getVal($hsd_db->getName(0));
$title=$hsd_db->getVal($hsd_db->getName(75));
$status=$hsd_db->getVal($hsd_db->getName(67));
$units=$hsd_db->getVal($hsd_db->getName(76));
if($units=~m/$unitname/i)
{
push(@row,$id);
push(@row,$title);
push(@row,$status);
push(@row,$units);

# print "id: $id, Name:$name, Status:$status \n";
print $q->Tr($q->td([$id,$title,$status,$units]));



print $q->p;
}

}

}
print $q->end_table;



print $q->end_form;
print $q->end_html;


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives