In a script, I am executing a browser page with two options. One to select data and another to update data. I'm using-
print "<td><a href=\"first.pl?item=select\">Select Info</a></td>";
print "<td><a href=\"first.pl?item=update\">Update Info</a></td>";
I then use an IF statement to choose:
if (param("item") eq "select")
{
&retrieve_data;
}
elsif (param("item") eq "update")
{
&update_data;
}
sub retrieve_data
{
But when I click either option, it stops at the 'param' statement. I use this all the time on one server
my own. the server at work is the same version of redhat and I think the install should be the same for both except for the Oracle stuff on the one at work. If I take the ref to param out, I can execute the rest of the script.
Any ideas???
Edit by tye: Use CODE tags