Page 1 of 1

Linking to FTP site with PHP script

Posted: Mon May 03, 2010 6:58 pm
by echarnley
Hello - Is there any reason that the following would not work in IE, but work fine in Firefox?

<?php if($_SERVER['REQUEST_METHOD'] == 'POST') : $projectid = $_POST['projectid']; header('Location: ftp://'.$projectid.'@ftp.domain.com/'); else:?>
<form action="<?php echo $_SERVER['../PHP_SELF']; ?>" method="post">
<p><strong>Enter Your Project ID</strong> :
<input type="text" name="projectid" />
<input type="submit" value="Go" />
</p>
</form>
<?php endif; ?>

Re: Linking to FTP site with PHP script

Posted: Tue May 04, 2010 9:53 am
by rnoack
see your other thread and in the future don't make two threads for the same question