473,396 Members | 2,018 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.

Simple ASP page

I need to send data from a 'form' on an HTML page to an ASP page.

The ASP page should 'return' a simple HTML page containing
the data from any items submitted, including any hidden items.

I know its probably very simple, but I am beginner.

Can anyone give me some simple ASP code to do this.
Thanks

Charles W
Aug 4 '06 #1
4 1745

ch*****@home.com wrote:
I need to send data from a 'form' on an HTML page to an ASP page.

The ASP page should 'return' a simple HTML page containing
the data from any items submitted, including any hidden items.

I know its probably very simple, but I am beginner.

Can anyone give me some simple ASP code to do this.
Page1.html contains your form. Make sure the action attribute is set
to Page2.asp. Here's the code for Page2.asp:

<%
Dim x
For Each x In Request.Form
Response.Write x & ": " & Request.Form(x) & "<br>"
Next
%>

That's it.

--
Mike Brind

Aug 4 '06 #2
Mike

Thanks for the reply.
Charles W

"Mike Brind" <pa*******@hotmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>
ch*****@home.com wrote:
I need to send data from a 'form' on an HTML page to an ASP page.

The ASP page should 'return' a simple HTML page containing
the data from any items submitted, including any hidden items.

I know its probably very simple, but I am beginner.

Can anyone give me some simple ASP code to do this.

Page1.html contains your form. Make sure the action attribute is set
to Page2.asp. Here's the code for Page2.asp:

<%
Dim x
For Each x In Request.Form
Response.Write x & ": " & Request.Form(x) & "<br>"
Next
%>

That's it.

--
Mike Brind

Aug 4 '06 #3

http://www.powerasp.com/content/hintstips/asp-forms.asp

"ch*****@home.com" <Ch*****@home.comwrote in message
news:44***********************@ptn-nntp-reader02.plus.net...
>I need to send data from a 'form' on an HTML page to an ASP page.

The ASP page should 'return' a simple HTML page containing
the data from any items submitted, including any hidden items.

I know its probably very simple, but I am beginner.

Can anyone give me some simple ASP code to do this.
Thanks

Charles W


Aug 6 '06 #4
Thanks....

This site has good examples.
Charles W
"Kyle Peterson" <ky*****@hotmail.comwrote in message
news:eh**************@TK2MSFTNGP03.phx.gbl...
>
http://www.powerasp.com/content/hintstips/asp-forms.asp

"ch*****@home.com" <Ch*****@home.comwrote in message
news:44***********************@ptn-nntp-reader02.plus.net...
I need to send data from a 'form' on an HTML page to an ASP page.

The ASP page should 'return' a simple HTML page containing
the data from any items submitted, including any hidden items.

I know its probably very simple, but I am beginner.

Can anyone give me some simple ASP code to do this.
Thanks

Charles W


Aug 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
3
by: ben | last post by:
All, What I have: I have written a VB.net application that uses Access DBs and Make 100s of Excel documents from the data. What I need: I need a Simple ASP.NET Page that will basically pass...
7
by: abcd | last post by:
I am trying to set up client machine and investigatging which .net components are missing to run aspx page. I have a simple aspx page which just has "hello world" printed.... When I request...
10
by: serge calderara | last post by:
Dear all, I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
2
by: Eric | last post by:
Simple problem - binding Visible property of label to Checked property of radiobutton on the same form. How do I do that in VS2005?? Visible="<%# radiob.Checked %>" - DOESN'T WORK It was so...
2
by: Michael7 | last post by:
Hi everyone, I'm new to CSS of course, and have been trying to learn it. However, when I try to pull off something as simple as positioning of text . . . nothing works in my index page. So in...
4
by: RN1 | last post by:
An ASPX page, named LinkButton.aspx, has a single LinkButton & nothing else. The code is very simple: <form runat="server"> <asp:LinkButton ID="lnk" PostBackUrl="Page1.aspx" Text="CLICK"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.