hot to post to form?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Travis

    hot to post to form?

    I want to write a perl script to fill out a form and submitit.

    This is the url the form sends data to.

    print
    "Location:http://www.somewhere.com/wwwboard/cg...wwboard.pl?nam
    e=cindy&subject =new&body=sayso mething";

    Should this work?
    If it does, how do I get it to continue in the script instead
    of ending the script on the "print location"?



  • Ram

    #2
    Re: hot to post to form?

    Travis wrote:[color=blue]
    > I want to write a perl script to fill out a form and submitit.
    >
    > This is the url the form sends data to.
    >
    > print
    > "Location:http://www.somewhere.com/wwwboard/cg...wwboard.pl?nam
    > e=cindy&subject =new&body=sayso mething";
    >
    > Should this work?
    > If it does, how do I get it to continue in the script instead
    > of ending the script on the "print location"?
    >
    >
    >[/color]
    use LWP


    --
    Ramprasad A Padmanabhan (ram AT netcore DOT co DO IN )
    These are decoy ids
    ramprasad@nsmai lserv.com
    info@pragatee.c om

    Comment

    • rugrat
      New Member
      • Oct 2005
      • 4

      #3
      Sending a form

      Travis, if the url is correct then you should have no major problems, however you might want to consider using hidden fields for passing variables instead of through the url itself. From the little bit of info you've provided I don't know if this will help or not but perhaps if you clarified things a bit I'd be more than glad to help you get your form working, Dave

      Comment

      Working...