Alright, hoping someone can help me on this which is driving me mad.
So I have a page with JS tabs, and each tab has forms. The main page has forms that are autofilled based on MySQL values. So here’s what the first tab contains:
[php]while($row = mysql_fetch_array($result))
{
echo "
General
Nutrition
Vendor
|
||||
";
echo “ echo “ Stock Number: |
<input readonly type=‘text’ name=‘stocknum’ value=” . $row[“stocknum”] . “> | ”;echo “ Stock Description: |
<input type=‘text’ name=‘stockdesc’ value=” . $row[“stockdesc”] . “> | ”;echo “ That goes on for quite some time, but you get the idea. Basically I’m matching up the stocknum field, and outputting all of the other fields autofill based on this. With the exception of stocknum, all of these fields are editable. When the user submits this form, it goes to a page that updates the variables based on the changes. This works great. I have no questions here. The next tab is pretty much the same, with a few changes. Firstly, the form doesn’t show up until the user selects from a drop down list, and it dynamically changes a div to show the appropriate forms. The second part is this: [php]echo " |
Calories:   |