Linking to FTP site with PHP script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
echarnley
Forum Newbie
Posts: 2
Joined: Mon May 03, 2010 5:06 pm

Linking to FTP site with PHP script

Post 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; ?>
rnoack
Forum Commoner
Posts: 34
Joined: Mon May 03, 2010 12:38 am

Re: Linking to FTP site with PHP script

Post by rnoack »

see your other thread and in the future don't make two threads for the same question
Post Reply