SamCec Posted August 21, 2010 Share Posted August 21, 2010 On an HTML Form, I have several Text boxes called "base1, base2...base13" Another text box I have is called "base_quantity" In my PHP routine: This is part of my code: $selected_base = $_POST['base1']; if ($selected_base == 'yes') { $base_value = $base_value + 1; $base_status = 'Yes'; } else if ($selected_base == 'no') { $base_value = $base_value - 1; $base_status = 'No'; } Later on in the PHP routine I want to pass back to the Form the value of $base_status and place it in the "base_quantity" text box. Something like this: base_quantity = $base_value. Can someone tell me how information is passed back to the FORM. Thank You, Sam Link to comment https://forums.phpfreaks.com/topic/211335-pass-information-back-to-form/ Share on other sites More sharing options...
litebearer Posted August 21, 2010 Share Posted August 21, 2010 might consider using session variables Link to comment https://forums.phpfreaks.com/topic/211335-pass-information-back-to-form/#findComment-1101942 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.