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

submit form data concept

P: n/a
When people say submit the form data, does it mean the form data are
submitted to web browser using either HTTP GET or POST method, and then it
will redirect to another page.

For example, this is page1.aspx

<form action="page2.aspx" method="post">

means it will submit the page1.aspx form data to the web server, and then
redirect from page1.aspxto page2.aspx?

please clarify. thanks!!

Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Visit http://www.w3schools.com/asp/asp_inputforms.asp to learn more. Onn
www.w3schools.com you can find also more on Javascript.
Jul 19 '05 #2

P: n/a
Matt wrote on 20 aug 2004 in microsoft.public.inetserver.asp.general:
When people say submit the form data, does it mean the form data are
submitted to web browser using either HTTP GET or POST method, and
then it will redirect to another page.

For example, this is page1.aspx

<form action="page2.aspx" method="post">

means it will submit the page1.aspx form data to the web server, and
then redirect from page1.aspxto page2.aspx?


[Please understand that this is a classic asp only NG,
so I will read your Q as page.asp, not page.aspx]

<form action="page2.asp" method="post">

is just like

<a href="page2.asp">

but for the form data being included in the page request [header].

"redirect" usually is understood as a directive issued by the server to
the browser to look at another page, which is not the case here.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3

P: n/a
On Thu, 19 Aug 2004 22:34:02 -0700, "Matt" <ma*******@hotmail.com>
wrote:
When people say submit the form data, does it mean the form data are
submitted to web browser using either HTTP GET or POST method, and then it
will redirect to another page.

For example, this is page1.aspx

<form action="page2.aspx" method="post">

means it will submit the page1.aspx form data to the web server, and then
redirect from page1.aspxto page2.aspx?


POST or GET will always have a page that the request is directed to,
but it doesn't need to be a different page than the original. It can
recursively submit to itself with no problem, you just have to have
all the code in the single page to both create the form and handle the
results.

Simple example, save as "test.asp":

<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>Please Enter Your Name:</p>
<form action='test.asp'>
<input type='text' name='name' id='name' size='30'>
<input type='submit' name='submit' value='Submit'>
</form>
<hr>
<%
Response.Write "Your Name Is: " & Request.Querystring("Name")
%>
</body>
</html>

Enjoy!

Jeff
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.