is it possible to pass a query to another page?
for example,
page1.php
page2.php
for example,
page1.php
Code:
<form method='post' action='page2.php'> <? $query = mysql_query("SELECT * FROM tblProducts"); .... ?> <input type='submit' onclick='page2.php'> </form>
Code:
<? $newquery = $_POST['query']; include("connect_db.php") $result = mysql_query($newquery); ?>
Comment