Results 1 to 9 of 9

Thread: php form

  1. #1

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    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?

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: php form

    i think winsock is only for visual basics.
    My usual boring signature: Something

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  6. #6

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    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?

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  8. #8

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: php form

    website = client
    client connects to server
    server = an application

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width