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 November 22nd, 2004, 08:53 AM
Registered User
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kashsheikh
Default to retreive form values on basis of an id

hi

i want to retreive values from a databse on the basis of an Id. & i want to use those values to add other form values in that particular Id.

for example
Db table has 6 cols. i have entered 3 values in them usin a form & then post it. on the next page i want to enter in the remaining 3 fields having Id=1. ANy ideas Need Help

 
Old November 22nd, 2004, 02:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
Quote:
quote:for example
Db table has 6 cols. i have entered 3 values in them usin a form & then post it. on the next page i want to enter in the remaining 3 fields having Id=1. ANy ideas Need Help
Could you explain little more on that? Is that you want to retrieve data based on ID=1 or you are trying to add values for those remaining 3 cols for the row that has ID=1?

If you are looking for retrieving values based on ID, query the database based on ID=1
Code:
SELECT col1, col2, col2 FROM tablename WHERE ID=1
Hope that helps.
Cheers!


_________________________
- Vijay G
Strive for Perfection
 
Old November 23rd, 2004, 10:15 AM
Registered User
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kashsheikh
Default

yeah that helped a bit thanx

 
Old November 23rd, 2004, 10:17 AM
Registered User
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kashsheikh
Default

now can u tell me one more thing i want to Retreive data from DAtabase & show them in a field as an editable field,
for e.g i have to show a menu & to get that value from the menu that was chosen by the user when they submitted the form

 
Old November 23rd, 2004, 02:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure if I understood that right. What kind of menu is that? Are you looking for ASP code that would extract the value that was submitted to a form?

Can you explain more on that?

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old December 1st, 2004, 11:32 AM
Registered User
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kashsheikh
Default

i have solved it thankyou for the help






Similar Threads
Thread Thread Starter Forum Replies Last Post
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
VBA code to email excel status sheet daily basis ramavtar Excel VBA 0 December 9th, 2006 05:28 AM
Passing the Id to another form louie001 ASP.NET 1.0 and 1.1 Basics 1 July 14th, 2006 06:45 AM
moderators to answer questions on a regular basis statusquo BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 3rd, 2005 10:09 PM





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