hi,
i have never used php but i think i really have to now.
the thing is,
i have a form which i need to be sent to my server.
how do i accomplish this. for a fact i know php has a built in winsock function.
can somebody help me?
Printable View
hi,
i have never used php but i think i really have to now.
the thing is,
i have a form which i need to be sent to my server.
how do i accomplish this. for a fact i know php has a built in winsock function.
can somebody help me?
i think winsock is only for visual basics.
No, Winsock is for everything Windows. It is not for PHP though.
PHP can have socket support (depends on your particular setup). But I don't really think that's what the OP needs.
OP: can you more clearly define your problem, please?
i think he is looking to have his form submited to his email. Maybe using sendmail... humm
Let's not guess, let's wait.
thnx for the replies :) ,
what i mean is the socket thing
http://nl3.php.net/sockets
this is the thing i want it to do.
client connects when form button is clicked
server sends reply "202"
client replies with the form data
(the form only exists of textboxes)
server sends "200"
and client closes the socket
does this make clear what i want to do?
No. Who is the client, who is the server?
website = client
client connects to server
server = an application
And this is just HTTP?
If you can, use PEAR::HTTP_Request or PEAR::HTTP_Client
http://pear.php.net/package/HTTP_Request
http://pear.php.net/package/HTTP_Client
I don't get the two-request thing, though. HTTP is more or less stateless, so there's no reason to make two requests. Just send the first with all the form data and check if the server replies with a success.