Jump to content

Php Submit Buttons


kle_3187

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.