Filling HTML's Form with Sockets ?! - 20/11/11 05:54 PM
hey all,,
With this simple given HTML's source :
index.html
get.php
My idea is :
I could not do it because until now I have seen many examples of how to get results from servers/webpages via sockets!
BUT not how to submit a form!
Any simple example would be very appreciated!
thanks a lot.
With this simple given HTML's source :
index.html
Php Code:
<html> <head><title></title></head> <body> <form action="get.php" method="POST"> <input type="text" name="address"> <select name="numbers"> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> </select> <input type="submit" value="submit"> </form> </body> </html>
get.php
Php Code:
<?php
echo $_POST["address"];
echo "<br />";
echo $_POST["numbers"];
?>
My idea is :
Php Code:
1)connect mIRC to index.html via Sockets 2)fill any data into the field "address" 3)choose any option from "numbers" 4)submit form. 5)getting results from get.php back into mIRC. "echo -a $result"
I could not do it because until now I have seen many examples of how to get results from servers/webpages via sockets!
BUT not how to submit a form!
Any simple example would be very appreciated!
thanks a lot.