Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 23rd, 2007, 03:28 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default How to submit the different data on single submit

<%@ language=VBScript %>

<html >
<head>
<title>Encore Support Portal</title>
</head>
<body>
<form name="test1" action="test.asp" method="post" id="form1">
<input type="text" name="fname">
<input type="text" name="lname">
</form>
</body>
</html>


<html>
<body>
<form name="test" action="test.asp" method="post">
<input type="text" name="education">
<input type="text" name="profession">
<input type="submit" name="Submit" value="Generate" ID="Submit1">
</form>

</body>
</html>

<%

Response.Write(Request.Form("test1.fname"))
Response.Write(Request.Form("test1.lname"))
Response.Write(Request.Form("education"))
Response.Write(Request.Form("profession"))
%>


plz anybody tell me how to submit the different data of different forms if the asp on single submit.

 
Old January 24th, 2007, 07:10 PM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<html><head></head><body>
<form action="test.asp?n=1" method="post">
First Name: <input type="text" name="fname" id="fname"><br />
Last Name: <input type="text" name="lname" id="lname"><br />
Profession: <input type="text" name="prof" id="prof"><br />
Education: <input type="text" name="educ" id="educ"><br />
<input type="submit" value="Generate">
<%
if request.querystring("n")=1 then
response.write(fname&"<br />")
response.write(lname&"<br />")
response.write(prof&"<br />")
response.write(educ&"<br />")
%>
</body>
</html>






Similar Threads
Thread Thread Starter Forum Replies Last Post
single submit to related tables forumuser BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 10 December 2nd, 2007 10:29 AM
A single JSP page havin one submit & normal button PrincessDreamz JSP Basics 1 September 4th, 2007 07:08 AM
Submit Form with QueryString Data Phil06 Javascript 4 June 15th, 2007 06:11 PM
Refresh Data when Submit Form ruso77 Infopath 0 April 13th, 2007 02:30 PM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.