Results 1 to 5 of 5

Thread: Submit Form Results..

  1. #1

    Thread Starter
    Member TheGuru's Avatar
    Join Date
    Dec 2001
    Posts
    57

    Submit Form Results..

    What would be the cleanest way to take a string from a submit form like:

    var1=Hello&var2=Internet&var3=World

    And parse it so I can store each var into a variable of its on in c++..

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    i'd use strtok
    or perl/php
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Do a quick search under my name and you'll find a thread with some attached files to do it.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Member TheGuru's Avatar
    Join Date
    Dec 2001
    Posts
    57
    There is a very strict rule to it tho... I cannot do it in php or perl. Its gotta be done in c++ cause if you use perl or php.. then I'd have to load the interpreter everytime the script is called thus killing off the reason of doing it in c++.

    parksie... ok

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    That's a server configuration issue though.

    If you use Apache with mod_php and mod_perl then the interpreter is actually loaded into the server itself, resulting in zero startup time, and the possibility of caching the compiled bytecodes.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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