note 62168 added to function.include

From: Date: Tue, 21 Feb 2006 20:08:52 +0000
Subject: note 62168 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-104156@lists.php.net to get a copy of this message
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"); } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 216.27.190.100 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62168 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62168&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62168&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104156) next »