Re: inserting a remote html file
"Minardi boy" <[EMAIL PROTECTED]> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]