on my site, i have a form already where you can create a category and give it a name, description, etc.. in that form, i want to create another form, or addition, to where it will create additional info about the category.
right now i have...
$data = "<html>
<head>
</head>
<body bgcolor=\"#FFFFFF\" background=\"../templates/DezinaCandy/images/pinkbg.gif\"
text=\"#800000\" link=\"#800000\" vlink=\"#800000\" alink=\"#800000\">
<br>
<b>Baby Name</b>: $cat_name<br>
<b>Birthplace</b>: Baby Beans Nursery<br>
<b>Weight</b>: <br>
<b>Size</b>: <br>
<br><br><b>Description</b>: Baby has this feature
<br><br><b>Feedback</b>:
</body>
</html>";
$file = "../about/$cat_name.htm";
if (!$file_handle = fopen($file,"a")) { echo "Cannot open file"; }
if (!fwrite($file_handle, $data)) { echo "Cannot write to file"; }
echo "You have successfully written data to $file <br>";
fclose($file_handle);
}
now how can i get it so that the feedback, weight, and size portions can be edited inside the other page, and passed as a variable to the file being written? so it would be like Weight: $baby_weight; etc
let me know if you have any ideas
thanks