What's with the string going solo? It seems more like an example of the structure than something that should be running in the code.
Your POST variables are weird..
// Should be more like..
Make sure you're connecting the second lot of code to the first (the form part), in the form action..
Using the below that would mean you would put the second lot of code in a file called "AutoLinkGenProc.php".
<form method="post" action="AutoLinkGenProc.php">