OK, so the handler might be something like:
<?php
# check for bad input
if (!is_numeric($_POST['name2'])) {
die("You must enter a number of links!");
}
$num_links=$_POST['name2'];
$category=$_POST['Favorite_Color'];
$linkname=$_POST['name'];
// example output only; you'll want to make this look like you want it...
echo "<p>
Thanks! We'll add your $link_num links in $category right away!
</p>
";
?>
Several things aren't clear, like is the path a local machine path or a URI? How are you going to hold information across page loads? And many more. But now you're started 😉