Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with html links in perl (+mysql)

Status
Not open for further replies.

martinasv

Technical User
Feb 12, 2006
24
HR
Hi, everyone!

I wrote a perl script which extracts data from mysql table and prints those data to html table. Those data include MAC, IP addresses, dates, times, etc. Now, what I did next was - I turned each MAC address into a link, like this:

while($Row=$Select->fetchrow_hashref)
{
print "<tr><td><a href=\"/cgi-bin/oMAC.pl\" target=\"_blank\">$Row->{MAC} </a> <td>$Row->{IP} <td>$Row->{date} <td>$Row->{time}";
}

As you can see, this link points to another perl script (oMAC.pl). I'd like that script to print out all the information about the MAC address I click on. But click on a link doesn't produce any post information, so I don't know how to make my script recognize which MAC address I clicked on.

Any suggestions?
I'd really appreciate it.
 
This has been addressed in the CGI Forum, either follow the thread there, or post a note to follow up in this thread.

Cross posting is a bad thing (TM), please don't ...

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top