Reposting form information
Posted: Sat Dec 04, 2004 2:33 pm
I have these fields Im testing for values. If they are not present then I show the field to insert the value but, if they are present I post what was put in. When the missing information is put in though, I want to resubmit all the information again. How can you do this? I thought the hidden field would work but, no.
Code: Select all
<?php
if(empty($_POST['Name'][$j])){
$form_block .= '
<li>Account Name: <input type="text" name="Name[]"> </li>
';
$empty++;
}
else {
$form_block .= '
<li>Account Name: '.$_POST['Name'][$j].'</li>
<input type="hidden" name="Name" value="'.$_POST['Name'][$j].'">
';
}
?>