posting Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spuzvica@gmail.com

    posting Forms

    Hi,

    I am kind of new to PHP so this might be a stupid question, but here it
    is anyway. If there is a form, let's say somewhere on the web with a
    couple of input fields and a submit button. Can I pull that .html (or
    whatever extension it is) in a PHP object and then post it with the
    input fields filled with what I want? And then show the result to the
    user? How would that be done?

    Thanks
    Rok

  • Erwin Moller

    #2
    Re: posting Forms

    spuzvica@gmail. com wrote:
    [color=blue]
    > Hi,
    >
    > I am kind of new to PHP so this might be a stupid question, but here it
    > is anyway. If there is a form, let's say somewhere on the web with a
    > couple of input fields and a submit button. Can I pull that .html (or
    > whatever extension it is) in a PHP object and then post it with the
    > input fields filled with what I want? And then show the result to the
    > user? How would that be done?[/color]


    Hi,

    You are not building something naughty, are you?
    I do not see the point of what you are trying to accomplish.

    Anyway: if you look at some form, and just copy all inputfields, including
    any of the hidden-type, you are ready.
    If you get that form and post it to the same address it was posting before
    (action in form), you probably get a result back.

    Why don't you just try it instead of asking here?

    Regards,
    Erwin Moller
    [color=blue]
    >
    > Thanks
    > Rok[/color]

    Comment

    • Manuel Lemos

      #3
      Re: posting Forms

      Hello,

      on 12/19/2005 11:58 PM spuzvica@gmail. com said the following:[color=blue]
      > I am kind of new to PHP so this might be a stupid question, but here it
      > is anyway. If there is a form, let's say somewhere on the web with a
      > couple of input fields and a submit button. Can I pull that .html (or
      > whatever extension it is) in a PHP object and then post it with the
      > input fields filled with what I want? And then show the result to the
      > user? How would that be done?[/color]

      If you mean making a new post request to the same or other server, you
      may want to try this HTTP client class that can be used to submit POST
      requests with form values among other things:




      --

      Regards,
      Manuel Lemos

      Metastorage - Data object relational mapping layer generator


      PHP Classes - Free ready to use OOP components written in PHP
      Free PHP Classes and Objects 2025 Versions with PHP Example Scripts, PHP Tutorials, Download PHP Scripts, PHP articles, Remote PHP Jobs, Hire PHP Developers, PHP Book Reviews, PHP Language OOP Materials

      Comment

      Working...