I am learning php. I am passing some values from one page to another page, and letting the user enter form into this page and then storing into the database.
I would like to stay on the same page, so instead of this first page-
<form method="post" action="update.php">
<input type="text" name="name" value="value1" />
</form>
update.php
<?php
$name= $_POST['name'];
?>
I want to be on the same page because i am getting some variables and arrays from a previous page with get()
<?php
$count= $_GET['count'];
$sum= $_GET['Sum'];
for ($i=0;$i<$count;$i++){
echo unserialize($_GET['serialized_name'])[$i];
?>
Since I also need to send the form values so i am not sure how i can pass the values i am getting to the next page- which is why i was hoping to be on the same page instead of going to update.php.