Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web page with C functions 1

Status
Not open for further replies.

mikeol

Programmer
Joined
Apr 22, 2003
Messages
8
Location
IE
I have written different functions in C which do tasks of taking in data, processing it, and giving the output.
I would like to write a web page whereby the user can choose which function they want to use, enter the data and parameters, and then my function will output the results.
Could someone tell me what is the easiest way to do this?
 
Ummm, maybe you posted in this forum by mistake? Would suggest you find a C forum instead.

Some things you might like to include in your post include the operating system, programming IDE any specific programming decisions you have made... and any other information that might be relevant to someone trying to help. Also some details on what you have tried already.

Jeff
 
you need to use cgi to run the program on a server.

the setup will depend on the server config: the basic premise is a webpage with a form; the form data is submitted to a cgi-script; the script calls the C function; the script then displays the function's return as a webpage.

I'd suggest looking into Perl: this is more readily available on servers, and shares a similar syntax to C.

Check out forum219.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 

You could try converting the C functions to JavaScript and running them client-side.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top