Page 1 of 1

Reposting form information

Posted: Sat Dec 04, 2004 2:33 pm
by wadesmart
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: &nbsp; &nbsp; <input type="text" name="Name[]"> </li>
   ';
   $empty++;
  } 
else {
  $form_block .= '
    <li>Account Name: &nbsp; '.$_POST['Name'][$j].'</li>
    <input type="hidden" name="Name" value="'.$_POST['Name'][$j].'">
  ';
}
						
?>

Posted: Sat Dec 04, 2004 4:12 pm
by rehfeld
your going to make this VERY complicated for yourself.
i would recomend just not accepting any info at all until its all complete