pointTrack and re-draw a line

Hello all,

I’m working on Openlayers/Geoserver

I have a layer contains cars id’s and serial signals of each car “stored in database as date”.
when i click on one car, popup displayed with car’s info from infolayer.
i want to add an option in the popup to track the selected car depends on its signals column
can any one help me with that ? I’ve no idea how to retrieve the selected car id and re-draw a line dependeing on it’s segnals.

do i have to use vector layer & pointtrack ?
how i can write that ?

parts of my code:

// create WMS layer
var infolayer = new OpenLayers.Layer.WMS(
“info”,
http://localhost:8080/geoserver/wms”,
{‘layers’: ‘TEST:info’, ‘format’:‘image/png’, ‘transparent’:‘true’},
{‘opacity’: 1.0, ‘isBaseLayer’: false, ‘visibility’: true}
);

map.addLayers([googlemap, infolayer]);

info = new OpenLayers.Control.WMSGetFeatureInfo({
url: ‘http://demo.opengeo.org/geoserver/wms’,
title: ‘Identify features by clicking’,
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
“chicken”,
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
map.addControl(info);
info.activate();