March 18, 200917 yr I'm learning php.. I've programmed a web page of 5 seperate divs, in each div is a form for calculating bonuses on "submit". The page is working, all calculations and layouts are perfect. All I want to do is.... Keep all the info and results on each form even when hitting submit on another without clearing the previous form. I'm using <form method = "POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> http://www.dorsetwebdesigns.co.uk/bg/test.php Any help will be gratefully appreciated as I have been searching for the answer for the last 4 days AARRGGHH
March 18, 200917 yr I would use JavaScript to send data on the onBlur event of each textarea. The JavaScript would send this data to say, temp_details.php and store each field as a session. Then on your form pages load, it looks for the sessions. If available, it puts them in the boxes. I use a similar methods frequently and they work fine.
Create an account or sign in to comment