I am getting a 500 server error. What i am trying to do is write something that will take a username and password that a user enters and then open a file and go to a certain url for the username/password that the pers entered.

Your script is seriously garbled - I can only hope this is just a bad cut & paste, and not the original script...

Anyway, assuming the users, passes and URLs are in the file 'zach', and that that file happens to be located in the current directory where the script is executed (who knows, you might get lucky), here's a slightly better script :

Thanks for your comments, I am always open for them and I like to hear them because they help me to see things that maybe I would'nt have otherwise. I understand what yo're saying in those comments, but, just so you know I understand those problems and that code was just a rough representation of what I was trying to accomplish, also that was just a piece of the pie, I had already taken care of things like the form hash. But, again thanks for your comments.