|
Posted by dalgibbard on 09/30/38 11:37
This (im hoping) is an easy problem to solve!
Quite simply, i have a HTML login form, where users can type their
usernames and passwords for an FTP server of mine.
The code im using is;
<?
//set variables for form values of previous page to make next code
easier.
$user = $_POST['user'];
$pass = $_POST['pass'];
$login = "Location: ftp://{$user}:{$pass}@12.34.5.67/";
header( "$login" );
?>
User and Pass are boxes on the form before hand, and all works fine-
however, the page this opens is a list of files that are inside that
ftp location- instead of a 'folder view' that you usually get with most
modern versions of windows. You can easily get to the folder view by
hitting refresh when the file list shows up, but this ideally isnt what
i want.
So is there another method of calling that page so that it goes
straight to folder view? Maybe opening it up in another window would
work, but how would i do that?
Any help would be greatfully recieved as ive only really just got into
PHP :)
Darren.
[Back to original message]
|