php and html form on the same page

A.M.S

New Member
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 thisfirst page-\[code\]<form method="post" action="update.php"> <input type="text" name="name" value="http://stackoverflow.com/questions/13783979/value1" /></form>\[/code\]update.php\[code\]<?php $name= $_POST['name'];?>\[/code\]I want to be on the same page because i am getting some variables and arrays from a previous page with get()\[code\]<?php $count= $_GET['count'];$sum= $_GET['Sum'];for ($i=0;$i<$count;$i++){echo unserialize($_GET['serialized_name'])[$i];?>\[/code\]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.
 
Back
Top