I'm new to PHP. I want to send data from one page to another page by post.
if(isset($_REQUEST['submit']))
{
header("location:nextpage.php");
//here i want to send data coming from my text box's by post function
}
I'm new to PHP. I want to send data from one page to another page by post.
if(isset($_REQUEST['submit']))
{
header("location:nextpage.php");
//here i want to send data coming from my text box's by post function
}
You should just target the right page to begin with.
<form action="your-processing-script.php" method="post">
Keep in mind the action is relative, so depending on your file structure, you may want a slash before the file url to prevent confusion.
/your-processing-script.php