Re: inserting a remote html file

"Minardi boy" <[EMAIL PROTECTED]> wrote:

>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?
>Here is your required information
>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");
>echo ("Please select a Skiing resort");
>Thanks RJ

You wrote the path with backslashes (\). An inclusion path should be written with 
regular slashes:


  Boaz Amit

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to