Thread: web result as input to C

  1. #1
    Registered User
    Join Date
    Aug 2006

    Question web result as input to C

    Right now our thinking is to have a webpage for client to input data, and send the data back to the server, which is using linux.

    The processing data part is writing in C and our next step is to try to connect these two components.

    But I am not sure how that could be done, any suggestions?

    Thank you so much.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Oregon, USA
    It's done thousands of times a day. Look up HTML forms.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Sep 2003
    PHP is usually used for this kind of stuff, but I assume that your C code will receive the HTTP POST data from standard input. You may even have to parse the POST data, which is of the form value=data&value2=data2, which languages like PHP already do for you.

  4. #4
    Registered User
    Join Date
    Aug 2006
    I don't use C for web suff (beware with the overflow buffers, check always all input strings) , however, knowing is liunx, you must have available tons of C libraries for CGI.
    Google CGI C programming
    And , also you will find some recommendation and best practices like avoid some unsafe standard libraries)


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. fscanf in different functions for the same file
    By bchan90 in forum C Programming
    Replies: 5
    Last Post: 12-03-2008, 09:31 PM
  3. Printing Length of Input and the Limited Input
    By dnguyen1022 in forum C Programming
    Replies: 33
    Last Post: 11-29-2008, 04:13 PM
  4. Type casting
    By Lionmane in forum C Programming
    Replies: 28
    Last Post: 08-20-2005, 02:16 PM
  5. need help with some input
    By blindleaf in forum C Programming
    Replies: 2
    Last Post: 03-16-2003, 01:50 PM