In my application there are 3 files. My files are linked in following way. shop.htm-> order.php ->query.php I want to use shop.htm variables and text boxes values in query.php file. Which is not directly linked with shop.htm file. How can I pass variables and control value to query.php file. Please help me.
You can use Session variables in order.php if number of variables are less Best way is use hidden text field in order.php inside a form(if it has a form) <input type="hidden" name="n1" value=$_POST["first variable"]> I hope this helps Regards Alex
If there is a form in order.php then u can follow kmap : <input type="hidden" name="n1" value="<?php echo $_POST["first variable"]; ?>"> use this inside the form and u will get it as $_POST["n1"] in query.php. But if order.php doesn't have any form then u have to use session or cookie and in that case shop.htm has to be shop.php.
no need to change shop.htm to shop.php as shop.htm only contains a form Use session in order.php Regards Alex