Results 1 to 8 of 8

Thread: Survey form -- is it possilbe??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta Canada
    Posts
    192

    Survey form -- is it possilbe??

    I am working for a small IT firm and we want to send our clients surveys. I have been thrown in to the development of this without alot of expereince in ASP so I thought I would run this by the forum first off.

    What I would like to do is:

    1) Send the client a link ithat will direct them to a web survey and pre-fill in info such as technicial, date, and call type.

    2) Have them complete the survey and hit submit to return their info (this part I know how to do!!)


    Link Structure:
    "http://domain.com/surveyform & date & technician &calltype"


    Is this even possible to do with ASP and if so do you have any suggestions.

    Thanks very much!!
    Last edited by dude131; Nov 19th, 2003 at 01:12 PM.

  2. #2
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    Sure it is very possible using asp or asp.net. What do you have questions about?
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    This is very possible.

    Use the query string like so:
    http://someplace.com/survey.aspx?Dat...lType=blahblah

    That will send:
    Date that has a value of blah
    Technician that has a value of blahblah
    CallType that has a value of blahblah

    to the survey.aspx page. To access those values, you use the NameValue collection object to hold them and you get the values from the Request.QueryString() method in the page load event. Use those values to fill your controls. Make sure you check for IsPostback.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta Canada
    Posts
    192
    I'm trying what you say but it won't work -- where am I going wrong? It directs me to the page but the first name textbox is not filled with "testname".

    My link: http://www.britec.com/survey.asp?fname=testname


    My code:
    <%
    dim fname
    fname=Request.QueryString("fname")
    %>

    <html>
    <head>
    <title>First Name</title>
    </head>
    <body>

    <form method="get" action="survey.asp">
    First Name: <input type="text" name="fname">
    <br />
    Last Name: <input type="text" name="lname">
    <br /><br />
    <input type="submit" value="Submit">
    </form>
    </body>

    </html>

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Are you using VS.Net? If you are, your first problem is you are using asp not asp.net.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta Canada
    Posts
    192
    I am trying to use just ASP.

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Ok, you are in the wrong forum...sorry for my replies, I thought you were talking about asp.net.

    The querystring principles are the same, and I think you can use the Request object the same, but you would have to verify that because I have used little asp.

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

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