Hi experts! Alright, this may be a little wordy, so bear with me here ;)
I am looking to create a download.php page that contains a form. In this form, there is a drop down menu (containing four values). I want each of these values to label a different server to connect to.
Underneath the drop down menu is a textfield that asks the user to input the filename (with extension) of the file they tend to look up within the selected server (the server they selected in the drop down menu).
My intention is after the server and filename are submitted, a connection is made to the server that was selected in the drop down menu. I want the script to scan the server for that filename (plus extension). If there is a match, it pulls that file and places in within a certain directory on my webserver. If not, it disconnects and tells the user there was no file on that server with the specified filename.
So, I'll start with that, and if I can get that working, I'll move on to more complex things afterwords...Any help is highly appreciated!!! Can anyone help me with a jump start? Will I need to create a database for the different servers, since the form uses values to differentiate between the fou? It sounds pretty confusing, and I'm new to PHP.
Here is the form I am using in case you need to see how I set it up.
<form name="form1" method="post" action="">
<td width="30%"> </td>
<td width="40%" rowspan="6"> </td>
<td width="30%" rowspan="6"> </td>
<td><font color="#FF0000" size="-2" face="Arial, Helvetica, sans-serif">Select
<td><select name="select" id="select">
<option value="dialer_1">Dialer 1</option>
<option value="dialer_2">Dialer 2</option>
<option value="dialer_3">Dialer 3</option>
<option value="dialer_4">Dialer 4</option>
<td><font color="#FF0000" size="-2" face="Arial, Helvetica, sans-serif">Filename
(<font color="#000000">with</font> <font color="#000000">extension</font>):</font></td>
<td><input name="filename" type="text" id="filename"></td>
<td><input type="submit" name="Submit" value="Retrieve file"></td>