Re: inserting a remote html file
| From: | Boaz Amit | Date: | Tue, 14 Aug 2001 16:49:01 +0000 |
| Subject: | Re: inserting a remote html file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62616@lists.php.net to get a copy of this message | ||
Re: inserting a remote html file
"Minardi boy" <minardi@aon.at> wrote:
>Hello
>I wanted the user to choose certain html files (one or more) via a checkbox
>and then insert them into the new php site.
>The checkbox thing is okay but I keep recieveing errors on the php site
>Could you help me?
>***
><html>
><body>
>Here is your required information
><?php
>if ($choice=="arlberg")
>{
>include ("C:\\inetpub\\wwwroot\\page1.html");
>}
>if ($choice=="paznauntal")
>{
>include ("C:\\inetpub\\wwwroot\\page2.html");
>}
>if ($choice=="otztal")
>{
>include ("C:\\inetpub\\wwwroot\\page3.html");
>}
>else
>{
>echo ("Please select a Skiing resort");
>}
>?>
></body>
></html>
>***
>Thanks RJ
You wrote the path with backslashes (\). An inclusion path should be written with regular slashes:
include('C:/inetpub/wwwroot/page1.html');
---
Regards,
Boaz Amit