•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 423,955 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,179 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 2176 | Replies: 2
![]() |
Hey!
I came up with the new problem. I want to fetch all form values by using request.form("FormName") which is generated by javascript on runtime.
The attached zip code contains the working code of javascript creating dynamic form elements. So after generating a couple of textboxes when I click on the "Submit" button it should display all the values entered in the textboxes on the next page.
Herez a working example of that javascript: http://www.quirksmode.org/dom/domform.html
Is this Possible?
Thanx
I came up with the new problem. I want to fetch all form values by using request.form("FormName") which is generated by javascript on runtime.
The attached zip code contains the working code of javascript creating dynamic form elements. So after generating a couple of textboxes when I click on the "Submit" button it should display all the values entered in the textboxes on the next page.
Herez a working example of that javascript: http://www.quirksmode.org/dom/domform.html
Is this Possible?
Thanx
If you are saying you would rather return the results to an asp page than use the CGI, you can comment out the:
towards the end of index.html and insert
Immediately after this line:
Your form will now submit to your new asp page instead of to the CGI.
The next trick is reading the form items when you do not know how many are going to be sent.
Your asp page can determine this for you with:
Which will return an ampersand (&) delimitted string that looks something like this:
rankingsel=Rating&rankingsew=Rating&cd=title&rankingsel2=Rating&rankingsew2=Rating&cd2=title
From here, you can parse the string as you see fit.
Disclaimer: I do not know the limits of "Request.Form" and how it may be affected by the user's ability to eternally add fields.
<!--<form method="post" action="/cgi-in/show_params.cgi">-->
towards the end of index.html and insert
<form method="post" action="myNewAspPageName.asp">
<div id="readroot" style="display: none">
Your form will now submit to your new asp page instead of to the CGI.
The next trick is reading the form items when you do not know how many are going to be sent.
Your asp page can determine this for you with:
'--returns all fields (names and values) submitted by the form strFormInfo = Request.Form response.write strFormInfo & "<BR>"
rankingsel=Rating&rankingsew=Rating&cd=title&rankingsel2=Rating&rankingsew2=Rating&cd2=title
From here, you can parse the string as you see fit.
Disclaimer: I do not know the limits of "Request.Form" and how it may be affected by the user's ability to eternally add fields.
Delete * Where FlatFile=True
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Passing Form Values Problem (ASP)
- HTML newbie problem!! (JavaScript / DHTML / AJAX)
- asp connecting to database (ASP)
- Help with asp form will not display contact information (ASP)
- Retrieving values from pop up and displaying into asp page (ASP)
- Save the values of a form (HTML and CSS)
Other Threads in the ASP Forum
- Previous Thread: retrive data from different tables of Ms access
- Next Thread: ASP .NET C# SQL on Visual Studio 2003, help?


Linear Mode