Response.Redirect to cgi script

Results 1 to 2 of 2

Thread: Response.Redirect to cgi script

  1. #1
    Join Date
    Dec 1969

    Default Response.Redirect to cgi script

    I am using the following Redirect.Response code to pass parameters from an asp script to a gi script:<BR><BR>Response.Redirect("cgi-bin/mail.cgi?email=strEmail?firstname=strFirstname?sur name=strSurname")<BR><BR>BUT how do I assign these values to the local variables inside the cgi script ?<BR><BR>i.e <BR><BR>$firstname = ;<BR>$surname = ; <BR>$email = ; <BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.Redirect to cgi script

    it looks like you are trying to pass the values though a query string:<BR><BR>Response.Redirect("cgi-bin/mail.cgi?email=strEmail?firstname=strFirstname?sur name=strSurname") <BR><BR>That wont work, you need to seperate the values with a "&" instead of a "?"<BR><BR>Try this:<BR>Response.Redirect "cgi-bin/mail.cgi?email=" & StrEmail & "&firstname=" & StrFirstName <BR><BR>etc...<BR><BR>I have no idea how to grab those value with CGI, you are prob asking the wrong board for that question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts