User Profile

Collapse

Profile Sidebar

Collapse
Fa6om
Fa6om
Last Activity: Nov 12 '07, 05:07 PM
Joined: Oct 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Fa6om
    started a topic CGI programming with C to create HTML Web form
    in C

    CGI programming with C to create HTML Web form

    Hi all

    I need your help to write a CGI script with C language that takes the inputs from the following web form and simply displays the user input after clicking "submit" button.


    Below is the HTML code:

    <html>
    <body>
    <form ACTION=”…(IP address)…/cgi-bin/test” method=GET>
    <p> Name: <input name=”name” size=20> </p>...
    See more | Go to post

  • Fa6om
    replied to read from parallel port
    in C
    Inb() function is to read the input from a parallel port

    Pin D0 of the parallel port is connected to a switch. When the switch is ON (set to 1) I want the program to read ( 00000001 = 0x01 ) from the parallel port and display a message that switch 1 is on. For the second switch, it's connected to pin D1 and the program will read ( 00000010 = 0x02 ) and display the output message. And so on....

    I may not use Inb() function...
    See more | Go to post

    Leave a comment:


  • Fa6om
    started a topic read from parallel port
    in C

    read from parallel port

    Hi all
    I need to write a program in C that reads 4 switches from the parallel port and display their status.
    All the program does is display:
    switch 1 is ON
    switch 2 is OFF
    switch 3 ...
    The program is to run in linux kernel version 2.6

    I started writing the program for one switch connected to the pin D0 of the parallel port, but i get a sigmentation failure message.

    #include...
    See more | Go to post
No activity results to display
Show More
Working...