kle_3187 Posted November 7, 2008 Share Posted November 7, 2008 Hi all, Was wondering if someone could help me. Im trying to pass information from the client to the server and then i shall try to encrypt this but I can't even get the two to talk. This is my Client form code. <form action="basicserver.php" method="post"> Name: <input type="text" name="message" /> <input type="submit" name="submit" value="Send"> </form> I am sending this to the server $socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n"); $ret = socket_connect($socket, $host, $port); socket_write($socket, $string, $message); // close sockets socket_close($socket); ?> Server side im not really sure how to tell it to read the input from the text box but have used $_POST["message"]; My server says can't read input? Please help thanks! Link to comment https://forums.phpfreaks.com/topic/131825-php-submit-buttons/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.