[Ilugc] passing html values to shell script

  • From: lgp171188@xxxxxxxxx (Guruprasad)
  • Date: Mon, 20 May 2013 11:45:48 +0530

Hi Hari,

On Mon, May 20, 2013 at 11:32 AM, hari prasadh <hariprasadh89 at gmail.com> 
wrote:

Hi Everyone,

Can somebody provide some sample program in detail how to pass html values
to shell script.

<form name="input" action="create_job.sh" method="get">

Normally a HTML form sends the data to a URL by GET or POST methods.
There will be server-side code to handle the incoming data, validate
it and if it is valid do some operation with it. So you have to write
all the logic of sanitizing the input and calling the shell script in
the server-side code in your favourite language (PHP, Python, Ruby,
Perl, Java and etc.). It is not a good idea to blindly trust the
client-side input data and perform operations on it, hence validation
and sanitization are required.

Thanks & Regards,
Guruprasad

Other related posts: