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>...
User Profile
Collapse
-
CGI programming with C to create HTML Web form
-
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... -
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...
No activity results to display
Show More
Leave a comment: