Jump to content

Passing value of variable from one php file to another using $_POST


f.ismayil

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.