|
-
Oct 17th, 2006, 03:04 PM
#1
Thread Starter
Frenzied Member
php form
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?
-
Oct 17th, 2006, 05:34 PM
#2
Re: php form
i think winsock is only for visual basics.
My usual boring signature: Something
-
Oct 17th, 2006, 05:54 PM
#3
Re: php form
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?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 17th, 2006, 06:02 PM
#4
Re: php form
i think he is looking to have his form submited to his email. Maybe using sendmail... humm
My usual boring signature: Something
-
Oct 18th, 2006, 01:35 AM
#5
Re: php form
Let's not guess, let's wait.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 18th, 2006, 02:05 AM
#6
Thread Starter
Frenzied Member
Re: php form
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?
-
Oct 18th, 2006, 02:35 AM
#7
Re: php form
No. Who is the client, who is the server?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 18th, 2006, 05:59 AM
#8
Thread Starter
Frenzied Member
Re: php form
website = client
client connects to server
server = an application
-
Oct 18th, 2006, 07:48 AM
#9
Re: php form
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|