473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

submit form data concept

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
3 2055
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JSjones | last post by:
Hi all, I'm new to these boards and my javascript experience is fairly limited and basic so please bear with me. Anyway, on to the question and some background. I'm developing using ColdFusion...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
3
by: D. Shane Fowlkes | last post by:
Sorry for the length of this post. I have created a rather complex form which has a header/line item (parent and child records) structure. It's for an intranet. A screenshot can be seen here: ...
1
by: Matt | last post by:
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...
5
by: strutsng | last post by:
I want to clarify the concept of submitting the form to the web server. PHP is just an example here, it applies to any web programming languages. On page1.php, <form name="myform"...
1
by: kkuniya | last post by:
Situation : - A form (method : POST, action : itself, onsubmit : alert 'Submit' ) - Got 2 submit button ( 'Save' , 'View') - Got navigation 1|2|3|4 What I want to do : - Once clicked on the...
7
by: Bjorn Sagbakken | last post by:
Hello. There maybe an simple answer to this, but sometimes one get a strange blindness when working intensely on one single problem. I'm using ASP.NET 2003, building pages that include 3 user...
24
by: MichaelK | last post by:
Who knows how to prevent submitting a form on the press Enter button before all fields on the form are filled up. People just enter the first field hit Enter and it submits the form and doing...
3
by: Daniel | last post by:
Hi all, I am using .NET 1.1. I have a form with a cancel button, something like this: <form method="post"....> <input type="submit" value="Submit"> <input type="submit" value="Cancel"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.