P
phillyfan
I have a script where I use the print << web_page code. I am calling
functions within the print <<web_page and web_page lines.
Here is a snippet of my code:
div class=form>
Fill out the fields below and click Submit to update a proposal.<P>
<form name=prpslupd
action=\"http://$servername/cgi-bin/marketing/n/prpslupd\" method=post>
<table border=1>
<tr>
<td colspan=4>
<B>PROPOSAL INFORMATION </B>
</td>
</tr>
<tr>
<td>
Proposal<BR>Number:
</td>
<td>
$proposal[0] # this code is fine
</td>
</tr>
<tr>
<td>
Rep<BR>Number:
</td>
<td>
$proposal[2] # this code is fine
</td>
</tr>
<tr>
<td>
Proposal<BR>Type:
</td>
<td>
pop_list("proptype", $proposal[10]); # this is where the hangup is it
shows this instead of perfoming the function
</td>
</tr>
<tr>
<td>
Prospect:
</td>
<td colspan=3>
my $prspctlist=$dbh->prepare("select descr from CARE.CARE_PROSPECT
where pnum=$proposal[1]"); # this is where the hangup is it shows this
instead of perfoming the function
$prspctlist->execute(); # this is where the hangup is it shows this
instead of perfoming the function
my $descr=$prspctlist->fetchrow_array(); # this is where the hangup is
it shows this instead of perfoming the function
$descr
</td>
</tr>
<tr>
<td height=10>
</td>
</tr>
<tr>
<td>
Proposal<BR>Date:
</td>
<td>
pop_date("off", $proposal[3]); # this is where the hangup is it shows
this instead of perfoming the function
When looking at the webpage created, the function code shows, example
-- pop_date("off", $proposal[3]); shows instead of the information
the function should show. I would rather use the print << web_page
code instead of print for every line. Please advise.
Thank you in advance.
functions within the print <<web_page and web_page lines.
Here is a snippet of my code:
div class=form>
Fill out the fields below and click Submit to update a proposal.<P>
<form name=prpslupd
action=\"http://$servername/cgi-bin/marketing/n/prpslupd\" method=post>
<table border=1>
<tr>
<td colspan=4>
<B>PROPOSAL INFORMATION </B>
</td>
</tr>
<tr>
<td>
Proposal<BR>Number:
</td>
<td>
$proposal[0] # this code is fine
</td>
</tr>
<tr>
<td>
Rep<BR>Number:
</td>
<td>
$proposal[2] # this code is fine
</td>
</tr>
<tr>
<td>
Proposal<BR>Type:
</td>
<td>
pop_list("proptype", $proposal[10]); # this is where the hangup is it
shows this instead of perfoming the function
</td>
</tr>
<tr>
<td>
Prospect:
</td>
<td colspan=3>
my $prspctlist=$dbh->prepare("select descr from CARE.CARE_PROSPECT
where pnum=$proposal[1]"); # this is where the hangup is it shows this
instead of perfoming the function
$prspctlist->execute(); # this is where the hangup is it shows this
instead of perfoming the function
my $descr=$prspctlist->fetchrow_array(); # this is where the hangup is
it shows this instead of perfoming the function
$descr
</td>
</tr>
<tr>
<td height=10>
</td>
</tr>
<tr>
<td>
Proposal<BR>Date:
</td>
<td>
pop_date("off", $proposal[3]); # this is where the hangup is it shows
this instead of perfoming the function
When looking at the webpage created, the function code shows, example
-- pop_date("off", $proposal[3]); shows instead of the information
the function should show. I would rather use the print << web_page
code instead of print for every line. Please advise.
Thank you in advance.