You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ambarish Mitra <am...@persistent.co.in> on 2007/06/21 19:39:09 UTC
[users@httpd] Input filter to read a HTML form data
Hi all,
I am on Apache 2.0.59 and the following form is hosted on the apache server
at htdocs. Users do a GET and get the form on the browser.
The simple HTML form looks like the following. It has 3 fields where users
enter data - data, phone and email. I want to write a HTTP (input?) filter
which will read the HTTP request and log the form fields that the users
enters. Is this possible?
<html>
<head>
DATA FORM
</head>
<body>
<form name="dataform" action="/cgi-bin/action.pl" method="POST">
<b>Username</b><br>
<input type="text" name="data" size="20" value=""><br>
<b>Phone Number</b><br>
<input type="text" name="phone" size="20" value=""><p></p>
<b>email id</b><br>
<input type="text" name="email" size="20" value=""><p></p>
<b>Submit</b><br><input type="submit" name="submit" value="OK">
</form>
</body>
</html>
Any pointers/help on how this can be achieved?
Thanks,
Ambarish.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Input filter to read a HTML form data
Posted by John Nichel <jo...@kegworks.com>.
Ambarish Mitra wrote:
> Hi all,
>
> I am on Apache 2.0.59 and the following form is hosted on the apache server
> at htdocs. Users do a GET and get the form on the browser.
>
> The simple HTML form looks like the following. It has 3 fields where users
> enter data - data, phone and email. I want to write a HTTP (input?) filter
> which will read the HTTP request and log the form fields that the users
> enters. Is this possible?
>
>
> <html>
> <head>
> DATA FORM
> </head>
> <body>
> <form name="dataform" action="/cgi-bin/action.pl" method="POST">
> <b>Username</b><br>
> <input type="text" name="data" size="20" value=""><br>
> <b>Phone Number</b><br>
> <input type="text" name="phone" size="20" value=""><p></p>
> <b>email id</b><br>
> <input type="text" name="email" size="20" value=""><p></p>
> <b>Submit</b><br><input type="submit" name="submit" value="OK">
> </form>
> </body>
> </html>
>
>
> Any pointers/help on how this can be achieved?
>
The posted data is being sent to a perl script; why not just log it from
there instead of intercepting the request?
--
John C. Nichel IV
System Administrator
KegWorks
http://www.kegworks.com
716.362.9212 x16
john@kegworks.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org