Posting a form to another script ?

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

    Posting a form to another script ?

    Is there a way to "post" a form to another php script? For example
    input.php retrieves some user variables then posts the results to
    another script , say form.php?

    I know this can be done using perl's LWP by creating an agent. Let me
    know if this makes sense or not? I know I can use GET, but I want to
    avoid GET for some other reasons.

    Thanks!

  • chotiwallah

    #2
    Re: Posting a form to another script ?


    el_roachmeister @yahoo.com wrote:[color=blue]
    > Is there a way to "post" a form to another php script? For example
    > input.php retrieves some user variables then posts the results to
    > another script , say form.php?
    >
    > I know this can be done using perl's LWP by creating an agent. Let me
    > know if this makes sense or not? I know I can use GET, but I want to
    > avoid GET for some other reasons.
    >
    > Thanks![/color]

    if i understand right you want to post form1 to form2 to some last
    script. this is no problem. you could for instance code the data from
    form1 into hidden fields in form2 and then post everything again.

    micha

    Comment

    • Bzdziul

      #3
      Re: Posting a form to another script ?

      Uzytkownik "chotiwalla h" <chotiwallah@we b.de> napisal w wiadomosci
      news:1116876407 .027808.60050@g 49g2000cwa.goog legroups.com...[color=blue]
      > if i understand right you want to post form1 to form2 to some last
      > script. this is no problem. you could for instance code the data from
      > form1 into hidden fields in form2 and then post everything again.[/color]

      or try use fsockopen, read some commets to this function on php.net, AFAIR
      there is example class to POSTing

      Comment

      • ZeldorBlat

        #4
        Re: Posting a form to another script ?

        Or try cURL to create a new request to the last form. It won't
        redirect the client's browser but instead make the request
        "behind-the-scenes" after which you could get the response and do
        something useful with it.

        It all really depends on what you want to accomplish.

        Comment

        Working...