You can do something like so:
HTML Code:
<a href="#" onclick="openDiv();return false">Link Text</a>
then have a function in a script block in the head:
Code:
function openDiv(){
var val1=document.getElementById('nameField').value;
var val2=document.getElementById('addressField').value;
var val3=document.getElementById('phoneField').value;
etc . . .
then code here to open the div and
code inserting the above values in its fields
}
But, this is better done with a server side language as, you cannot be certain folks will have javascript enabled.
Bookmarks