I must change a program created in Perl. The purpose of my modification was to add a checkbox 'SID' and therefore to understand the program if my checkbox checkes the reference if it is not the same.
That is, if the checkbox 'SID' is unchecked, the program runs normally and overthrow me:
$ name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = $ comm) (PROTOCOL = $ prot) (Host = $ host) (Port = $ port))
)
(CONNECT_DATA =
(SERVICE_NAME = $ serv)
)
) ";
However, if the checkbox 'SID' is checked, the program overthrow me:
$ name =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = $ prot) (Host = $ host) (Port = $ port))
)
(CONNECT_DATA =
(SID = $ serv)
)
) ";
So I post my script already changed but that does not work. I have my checkbox but wonder if the problems.
On the checkbox if this is line 112 to 124.
PHP Code:
$query->param('SID');
if ($query->param('SID')=='yes')
{
my $new="
$name =
(DESCRIPTION = (ADDRESS = (PROTOCOL = $prot)(Host =
$host)(Port = $port))
)
(CONNECT_DATA =
(SID = $serv)
)
)";
}
My checkbox 'SID' this is line 281 to 286 and line 414 to 419
HTML Code:
<TR>
<TD colspan='2'>
<input type='checkbox' name='SID' value='yes'
<font size='2' style='font-weight:normal;'>Connection by SID<br>
</TD>
</TR>
HTML Code:
<TR>
<TD colspan='2'>
<input type='checkbox' name='SID' value='yes'
<font size='2' style='font-weight:normal;'>Connection by SID<br>
</TD>
</TR>
Bookmarks