note 85407 rejected from function.system by thiago
| From: | thiago@php.net | Date: | Thu, 28 Aug 2008 19:48:48 +0000 |
| Subject: | note 85407 rejected from function.system by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143957@lists.php.net to get a copy of this message | ||
Note Submitter: Scott
----
Can someone tell me why system() isn't receiving the variable correctly?
<html>
<body>
<form id="blacklisted" name="blform" method="POST"
action="test.php">
<input type="text" name="ip" size="20" >
<input type="submit" name="submit" value="Check">
</form>
<?php
$ip = $_POST['ip'];
echo 'Checking '.$ip.'<br>';
echo '<pre>';
system('./rbl.pl',$ip);
echo '</pre>';
?>
</body>
</html>
echoing the $ip shows up just fine but when it goes to use that variable in the system() command it
acts as if its not there.
Thanks for any help.