By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,838 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,838 IT Pros & Developers. It's quick & easy.

"Send" button

P: n/a
Sorry for a very stupid question. Can you tell me what does the
following html source does if I press button "Send"? If I read this
code by Netscaspe from my local file system and then press "Send", I
see in my browser directory where the considered html source is
located. If I publish the given html source, open published page and
again press "Send" nothing changes... What I want to do, is to know
what choice did people who were visiting my published page.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>index</title>
</HEAD>
<BODY
style="background-image:
url(file:///opt/kde3/share/wallpapers/gold_crinkle.jpg);">
<FORM METHOD="GET" ACTION=".">
<P> <INPUT TYPE="TEXT" NAME="TFIELD" VALUE="Fiels" >
<P> Yes <INPUT TYPE="CHECKBOX" NAME="CHEKBOX" CHECKED>
<P> 1 <INPUT TYPE="RADIO" NAME="RADIO" VALUE="R1" >
<P> 2 <INPUT TYPE="RADIO" NAME="RADIO" VALUE="R2" CHECKED>
<P> <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Send" CHECKED>
<P> <INPUT TYPE="RESET" NAME="RESET" VALUE="Reset" CHECKED>
<P>
</FORM>
</BODY>
</HTML>
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Wed, 12 May 2004 01:41:08 -0700, Kurda Yon wrote:
Sorry for a very stupid question. Can you tell me what does the
following html source does if I press button "Send"? .... <FORM METHOD="GET" ACTION="."> .... ^^^^^^^^^^ <P> <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Send" CHECKED>

.... ^^^^^^

The form action parameter contains a URL of a form handler -- a
server-side resource that will process the form data. In the case of a
local file, there is no server; because the form is a "GET" form, the
constructed URL of the handler is (incorrectly) the filesystem directory
containing the file (with the form parameters appended in a standard
format).

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #2

P: n/a
> > Sorry for a very stupid question. Can you tell me what does the
following html source does if I press button "Send"? <FORM METHOD="GET" ACTION=".">

... ^^^^^^^^^^
<P> <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Send" CHECKED>

... ^^^^^^
The form action parameter contains a URL of a form handler -- a
server-side resource that will process the form data.


Ok. But what I do not understand is a general idea :). I understood
that after pressing "Send-button" server-side resource will process
the form data. But where I need to put program which will process this
forma data, and where is the forma data which I need to process after
some user pressed "Send button".
Thank you.
Jul 20 '05 #3

P: n/a

"Kurda Yon" <ku******@yahoo.com> wrote in message
news:f8**************************@posting.google.c om...
Sorry for a very stupid question. Can you tell me what does the
following html source does if I press button "Send"? <FORM METHOD="GET" ACTION=".">

... ^^^^^^^^^^
<P> <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Send" CHECKED>

... ^^^^^^
The form action parameter contains a URL of a form handler -- a
server-side resource that will process the form data.


Ok. But what I do not understand is a general idea :). I understood
that after pressing "Send-button" server-side resource will process
the form data. But where I need to put program which will process this
forma data, and where is the forma data which I need to process after
some user pressed "Send button".


If the program already exists, then it must already be written in the way
necessary to access the form data, and all you have to worry about is where
to put the program file--which is at the location indicated by the ACTION
attribute.

If the program doesn't even exist yet, then your question is like, "I want
to create a web page. Can you tell me how?" The answer to that question
would be, "Go take an HTML course." *You* need to go take a course in some
server-side web processing technology, whether it's ASP or JSP or PHP or CGI
or something else.

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.