Gossamer Forum
Home : General : Databases and SQL :

Re: [Paul] quick DBI question

Quote Reply
Re: [Paul] quick DBI question In reply to
Okay I finally got it working with the hashref function. The problem is that I have all my HTML form data in a huge qq{} block. I can't dynamically populate the pulldown menu within that block.

Here's a snippet:

--

<form name="facultyeval" method="post" action="">

<table width="80%">
<tr>
<td width="24%">
<div align="right"><b>Student's Name:</b></div>
</td>
<td width="76%">
<select name="nameselect" size="1">

while (my $row = $sth->fetchrow_hashref) {
$fld = $row->{firstname};
print $fld;
}


</td>
</tr>
<tr>
<td colspan="2"><b>Question 1</b></td>
</tr>
<tr>
<td colspan="2">How many Quarters have you had this student?
<select name="totalQuar" size="1">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>

--

As you can see I've embedded the code within the qq{} block which does not work. What's the best way to approach this considering I'm printing an enormous form within that black (300+ lines)?

Thanks again yall!

Paul
Subject Author Views Date
Thread quick DBI question termid0g 12535 May 28, 2002, 8:35 AM
Post Re: [termid0g] quick DBI question
Wil 12318 May 28, 2002, 8:54 AM
Thread Re: [termid0g] quick DBI question
Paul 12392 May 28, 2002, 8:57 AM
Thread Re: [Paul] quick DBI question
termid0g 12385 May 28, 2002, 10:26 AM
Thread Re: [termid0g] quick DBI question
Paul 12404 May 28, 2002, 10:32 AM
Thread Re: [Paul] quick DBI question
termid0g 12404 May 28, 2002, 11:00 AM
Thread Re: [termid0g] quick DBI question
Paul 12438 May 28, 2002, 11:02 AM
Thread Re: [Paul] quick DBI question
termid0g 12428 May 28, 2002, 11:07 AM
Thread Re: [termid0g] quick DBI question
Wil 12340 May 28, 2002, 2:14 PM
Post Re: [Wil] quick DBI question
termid0g 12260 May 29, 2002, 8:52 AM
Thread Re: [Paul] quick DBI question
termid0g 12364 May 28, 2002, 11:14 AM
Thread Re: [termid0g] quick DBI question
Paul 12383 May 28, 2002, 11:45 AM
Post Re: [Paul] quick DBI question
termid0g 12310 May 28, 2002, 12:04 PM
Thread Re: [Paul] quick DBI question
termid0g 12321 May 29, 2002, 9:43 AM
Post Re: [termid0g] quick DBI question
Paul 12225 May 29, 2002, 10:29 AM