How to Post same data to 2 pages in PHP, I need to select data from database in index.php and load_page.php
I try to do this:
<a href="index.php?cat=Gadgets && pag/load_data.php?cat=Gadgets" title="Common">
thanks
How to Post same data to 2 pages in PHP, I need to select data from database in index.php and load_page.php
I try to do this:
<a href="index.php?cat=Gadgets && pag/load_data.php?cat=Gadgets" title="Common">
thanks
If you want to send data to 2 different pages without redirecting the user through 2 pages you should have a look at AJAX with jQuery
If you want to open 2 pages with GET data you can easily do that with jQuery. Have jQuery listen to user clicks on the link and open a new tab.
Something like (not tested)
<script>
$(document).ready(function(){
$('#link').bind('click', function(){
window.open(url2, '_blank');
});
});
</script>
<a href='mypage.php?data=bla&data2=bleh' id='link'>GO</a>