Hello all,
I have the below function that opens a record based on the “id” returned from my query. What I want to do is pass another variable “request_type” through the javascript and then run a query based on the two passed variables (id and request_type)
I have it passing in the ID fine but I can’t seem to get the request_type to pass through.
Here is the code for the request_type:
[code=html]<input type=”hidden” name=”request_type” value=”C”>
And here is my function:
[CODE]
function editRecord(id) {
var LeftPosition = (screen.width – 800) / 2;
var TopPosition = (screen.height – 600) / 2;
var link;
link = ‘edit.php?id=’ + id;
MyWin = window.open(link,”EditRecord”,”toolbar=no,scrollbars=yes,resizable=no,top=”+TopPosition+”,left=”+LeftPosition+”,location=no,directories=no,status=no,menubar=no,width=760,height=550″);
MyWin.focus();
}
How would I get the value from request_type into my function and have it pass to the next page for use in my query?
Thanks for any help.