|
Posted by Markus Ernst on 09/27/93 11:37
FingAZ schrieb:
> Janwillem Borleffs wrote:
>
>>dalgibbard@gmail.com wrote:
>>
>>>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?
>>>
>>
>>No, this is something the client should modify on his/her machine by
>>changing the folder options. Not PHP related...
>>
>>
>>JW
>
>
> Well, at first, it would just load up a "page nopt found error" then
> you hit refresh and it works? Its definately something to do with the
> header function- is there any other functions available to call a page?
> preferably in a new windo or something?
>
> Darren.
>
Client-side redirect: In the form action attribute call a script, call
it for example "ftplogin.php"; you can use the target attribute in order
to open a new window.
ftplogin.php then will be something like:
<?php
$url = "ftp://".$_POST['user'].":".$_POST['pass']."@12.34.5.67/";
?>
<html>
<head>
<meta http-equiv="refresh" content="0; URL=<?php echo $url; ?>">
</head>
<body>
If you are not redirected automatically click
<a href="<?php echo $url; ?>">here!</a>
</body>
</html>
HTH
Markus
Navigation:
[Reply to this message]
|