f.ismayil Posted April 16, 2011 Share Posted April 16, 2011 Hi, I need to pass value of variable to another php file. I thought it is possible to do it as following: <form action="products.php"> <INPUT TYPE=hidden NAME='id' . VALUE='$id'> </form> But the problem is like that. The php file inside which I want to write above html code has not using <form> tag and it has no buttons. So how to initiate the transfer of variable into another php file? Is the above idea is not the good idea? Are there any another ways? Quote Link to comment https://forums.phpfreaks.com/topic/233917-passing-value-of-variable-from-one-php-file-to-another-using-_post/ Share on other sites More sharing options...
spiderwell Posted April 16, 2011 Share Posted April 16, 2011 using a querystring in a link will do the same. Quote Link to comment https://forums.phpfreaks.com/topic/233917-passing-value-of-variable-from-one-php-file-to-another-using-_post/#findComment-1202413 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.