Results 1 to 3 of 3

Thread: Form Fill Out -> Submit?

  1. #1

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Question

    Hey,
    I have question. I want to do this... On the web site I want to put whole bunch a quesions, and the person has to fill in the answers into a textbox. My quesion is this, how can they submit the info to me when the are done, or how can I see whe they had filled out later on? It's not really a survey, I think it's more like a test...

    Thanks!
    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Well if you're using some kind of server-side scripting like ASP or PHP it's fairly simple, you can just set a form's Action attribute to the script you want to process the results, and the variables will be available for you by the names of the input controls you had in the first page.

    If you want to do it in client-side JavaScript, you could open a new window when the user clicks a button, which will be filled out with their results. This is fairly simple.

    It seems like you want to save their results though, so server-side scripting is probably best. If you are using ASP the variables will be available using the Request object, like this:

    Say you had a textbox named text1...

    If you used the POST method -
    Request.Form("text1")

    If you used the GET method -
    Request.QueryString("text1")


    I am not entirely sure about the PHP code as I've never used it, but it will be documented at the website http://www.php.net if you want to go look. Try search under 'get method' or 'post method' depending which you're using (I'd advise POST method myself).
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Guest
    in PHP if you used the GET method it would be:


    $text1


    if you used the POST method it would be:

    $text1


    really convenient.. you can switch between the two without modifying code at all


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