Hello, I have a form in a php page with method=post. I want to send the form variables to another web site using post method so that form variables will not be shown in the page url.
But i want that some variables of form should be saved in the database before tranferring control to the other web site.
I used this process.
Page1 Code
<form method=post action=step2.php>
<input type=text name=package_name >
<input type=submit >
</form>
Page2 Code
<?php
$package_name =$_POST['package_name'];
$obj = new con();
$obj->connection();
$obj->query("insert into tab (package_name) values ($package_name)");
header("Location: http://www.other_web_site.com?package_name=$package_name");
exit;
?>
By using this code control is trasferring to other web site but package_name is being show in the url.
Can it be possible that package name will save in my database and then control may go transfer to the other web site by using post method so that package name will not be shown in the browser url?