Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 March 21st, 2005, 03:47 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to runsrealfast
Default Populating html text boxes

Sorry if this is a basic thing to do but I am new to ASP. I want to Have a text field that gets its initial value from another form on anther asp page. Please help

John Taylor
 
Old March 22nd, 2005, 01:53 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii runsrealfast!!!
suppose ur first.asp page have form like
 <input type=text name=login_name >
 <input type=text name=role>
 <input type=submit value="Submit" name=saveit>
you can access the values of "login_name" and "role" textboxes in second.asp page using
request("login_name")
and request("role")
Since you want to show this value in second.asp page text box use this code

 <input type=text name=login_name1 value='<%=request("login_name")%>' >

Hope this will help you



Cheers :)

vinod
 
Old March 22nd, 2005, 03:45 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to runsrealfast
Default

I tried what you had suggested, but it did not work here is my code:

File textrequestform2.htm
 <form action="textconfirm.asp" method="post" name="form" id="form" >
 <input name="division" type="text" id="division" size="30">
</form>

File textconfirm.asp

<form action="textrequestsubmit.asp" method="post" name="form" id="form" >

<input type="text" name="divison" size="60" value='<%=request("divison") %>'>

</form>

It just has a blank text box on the textconfirm page

Please help


John Taylor
 
Old March 22nd, 2005, 05:18 PM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dwithrow Send a message via Yahoo to dwithrow
Default

runsrealfast,

You misspelled division on textconfirm.asp .

change <%=request("divison") %> to <%=request("division") %> and it should work.

HTH
Don










Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding combo boxes using html and javascript preethi.c Beginning VB 6 5 March 3rd, 2005 06:36 AM
Using xsl to create HTML combo boxes rdavisiii XSLT 4 November 23rd, 2004 05:40 AM
populating a text field sand133 VB.NET 2002/2003 Basics 12 June 18th, 2004 08:49 AM
Populating text box from RecordSet ersp Access VBA 5 April 4th, 2004 08:52 PM
Populating a text box from a RecordSet ersp Access 1 April 4th, 2004 04:22 PM





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