inserting a remote html file

From: Date: Mon, 13 Aug 2001 19:40:21 +0000
Subject: inserting a remote html file
Groups: php.general 
Request: Send a blank email to php-general+get-62488@lists.php.net to get a copy of this message
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> *** I hope I didn't make you more experienced people sigh too much Thanks RJ

« previous php.general (#62488) next »