this is php code on how i pass the ip and pword
Code:
<html><head><title>Enter Details
</title></head><body>
<form name="detailfrm" method="post" action="">
<table>
<tr>
<td>Enter Ip</td>
<td>:</td>
<td><input type="text" name="ip1"></td>
</tr>
<tr>
<td>Enter password</td>
<td>:</td>
<td><input type="text" name="ip2"></td>
</tr>
<tr>
<td><input type="submit" value="Submit" name="detailbtn"></td>
</tr>
</table>
</form>
</body></html>
<?php
if(isset($_POST["detailbtn"]))
{
$ip1=$_POST["ip1"];
$ip2=$_POST["ip2"];
putenv("IP1=$ip1");
putenv("IP2=$ip2");
system("/var/www/cgi-bin/script.sh $ip2 $ip1");
}
in my sh file it receive the ip and pword but i just dont know how to store my pword there.