ian89 Posted March 19, 2008 Share Posted March 19, 2008 Is there any way I can make this possible: A login box is embedded in the website, and a user can enter his username and password in there and he is redirected to his folder in a non-anonymous FTP site. PHP scripting for this would be very much appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/96904-ftp-login-box/ Share on other sites More sharing options...
Kenny Pollock Posted March 19, 2008 Share Posted March 19, 2008 have the form submit to a file, and at the top of the file use php's header() function to redirect, like this: header('Location: ftp://' $_POST['user'] . ':' . $_POST['pass'] . '@ftpsite.com'); Link to comment https://forums.phpfreaks.com/topic/96904-ftp-login-box/#findComment-495854 Share on other sites More sharing options...
ian89 Posted March 19, 2008 Author Share Posted March 19, 2008 thanks for the idea pal. it somehow works on firefox, but not on IE7 since it does not seem to support FTP browsing. because of this, is there such a way that doing so would open windows explorer instead? thanks much. Link to comment https://forums.phpfreaks.com/topic/96904-ftp-login-box/#findComment-495863 Share on other sites More sharing options...
Kenny Pollock Posted March 19, 2008 Share Posted March 19, 2008 The only way I know of doing it in IE7 is by going to the Page Menu and selecting "Open FTP site in Windows Explorer" Or... associating the ftp:// extension with an FTP client, like Filezilla. Link to comment https://forums.phpfreaks.com/topic/96904-ftp-login-box/#findComment-495865 Share on other sites More sharing options...
ian89 Posted March 24, 2008 Author Share Posted March 24, 2008 i dunno what went wrong, im such a noob, but the code above doesnt seem to do anything in firefox anymore. all it does is redirects into a blank page. what im trying to achieve here here is a code that gathers username and password data from a form and uses it to enter an ftp site via ftp://username:[email protected] address. please help me on this. thanks. Link to comment https://forums.phpfreaks.com/topic/96904-ftp-login-box/#findComment-499569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.