note 62168 rejected from function.include by vincent

From: Date: Tue, 21 Feb 2006 20:11:41 +0000
Subject: note 62168 rejected from function.include by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-104157@lists.php.net to get a copy of this message
Note Submitter: jennybaotranla at yahoo dot com ---- Can someone please tell me why this code did not work with url ??? <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" > Selected file: <input type="text" name="url" value=""> <input type="submit" name="submit" value="Load"> </form> </center> <br> <hr> <?php if (empty($_POST['url']) ) echo "<p>Please enter a valid url</p>"; else { $url = $_POST['url']; include ("$url"); //echo ("$url"); } ?>

« previous php.notes (#104157) next »