I'm working on an ftp login form using PHP. I'm trying to set it up so that the PHP file is self calling. eg. file FTP.PHP displays an html form in which the form action setting calls FTP.PHP. Essentially the program does the following: 1) Display a form prompting user to enter username and password. Ftp server location is hard coded into PHP page. 2) User clicks on Login/Submit button which calls ftp.php. Code at beginning of php file (prior to aforementioned form data) checks if a username and password was passed. If so an attempt to connect ot the hardcoded ftp server is made with said username and password. If connection fails, login form is displayed with a message "Login failed, please try again." 3) If connection was successful, open url ftp://username:password@xxxxxxxxxxxxxxxx What I'm finding during testing is that the first time I run the page, user name and password information is passed back to the program (I've turned on globals in my php.ini file and included a foreach line that echos the contents of the $_REQUEST array to show what was passed.) But as of this point entering new login information and clicking on Submit/Login always returns the same data. Personally, I'm not even sure if the action is re-running. Does PHP support the writing of scripts which with forms whose actions are self calling? eg. the form created by ftp.php calls ftp.php. If so, is there anything I need to do to flush the $_REQUEST buffer between presses of the SUBMIT button? FYI, Windows 2000 server with IIS 5 (I think it's 5?) and PHP.EXE version 4.3.1.1 (I tried installing a newer version of PHP several months ago but it promptly broke all of my existing PHP based applications. In short, I'm staying with this version for the time being.) I look forward to your comments and suggestions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php