Results 1 to 2 of 2

Thread: submit form via URL [resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Upstate NY
    Posts
    210

    submit form via URL [resolved]

    hi,

    how would i submit a form on a webpage by passing its arguments in the url

    ex:
    i want the "Name" to be "Bob" and "Site" to be "blah". i've tried navigating to "http://www.blah.com/script.pl?Name=Bob&Site=blah" but it doesn't submit the form, any ideas on how to make this work?

    Thanks
    -George
    Last edited by Rh0ads; Nov 12th, 2002 at 05:22 PM.
    < o >

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    That only works if the CGI script is looking for the variables to be submitted as GET. You want to do a POST submit, which doesn't involve the URL. The variables are sent in POST as a data "body" after the HTTP headers, kind of the reverese process of getting a web page. The CGI script receives this as standard input.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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