get $_GET["id"] in window.location in PHP
-
Hi, I have a php file with jquery button like this:
and:
$(function() { $( "#btnContact" ).button(); });
$('#btnContact').click(function() { window.location = 'contact_member.php'; });I want to make the window.location as:
contact_member.php?id= +
How can I do this please?
Technology News @ www.JassimRahma.com
-
Hi, I have a php file with jquery button like this:
and:
$(function() { $( "#btnContact" ).button(); });
$('#btnContact').click(function() { window.location = 'contact_member.php'; });I want to make the window.location as:
contact_member.php?id= +
How can I do this please?
Technology News @ www.JassimRahma.com
-
Hi, I have a php file with jquery button like this:
and:
$(function() { $( "#btnContact" ).button(); });
$('#btnContact').click(function() { window.location = 'contact_member.php'; });I want to make the window.location as:
contact_member.php?id= +
How can I do this please?
Technology News @ www.JassimRahma.com
With a little search, there is a JS function that parse the URL and you can get the "id" value ;)