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
      ✅「官方网站」mk体育拥有各种免费又安全的资源,因为亚洲当中中国玩家人口基数的众多,mk体育创造了中国网络游戏的神话,全球首推免费在线点播体育直播。


      PHP Classes - Free ready to use OOP components written in PHP

      Comment

      Working...