Jump to content

Pass Information back to Form


SamCec

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.