One thing I see right away: your 2nd.php form submit's to index.php but the values you pass from the form are never looked for in index.php. So what's the point of that interaction?
Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010