I want to print the value of form fields using an array. I have two fields in file1.php, name and email, which I am passing to file2.php using post and storing it in an array.
<?php
$name = $_post['name']
$email = $_post['email];
function personal($name, $email) {
$return = array($name, $email);
print_r($return); //Output(Array ( [0] => alisha [1] => alisha@gmail.com )
echo implode('<br>', $return); //Output alisha alisha@gmail.com
?>
How do I print these values, alisha and alisha@gmail.com, in the file1.php when the user go to the previous page using the submit button without using a session and a cookie?
<input type=text name=name value="**print alisha here array[0]**">
<input type=text name=email value="**print alisha@gmail.com here array[1]**">