This is a discussion on "<Input> to Requst.form() puzzle." within the Classic ASP section. This forum, and the thread "<Input> to Requst.form() puzzle. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
<Input> to Requst.form() puzzle.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
<Input> to Requst.form() puzzle.
I am need help with a problem that I am having. I am trying to turn 30 pages of code into 2 pages. I am doing good except for 1 small problem. getting information from the <input> on page 1 to the request.form() on page 2.
I am using the following code. <%WHILE NOT ((recordset1.fields.item("Name").value) = "") %> <tr> <td width="20%" height="20"> <td width="5%" Height="20" align="right"> <td width="20%" height="20" align="center"> <input type="Submit" name="<%=(recordset1.fields.item("Rank").value)%>" value="<%=(recordset1.fields.item"Name").value)%"> <td width="1%" height="20"> <%Recordset1.movenext%> <% If ((recordset1.fields.item("Name").value) <> "") Then %> <td width="5%" height="20" align="center"> sometext<td width="1%" height="20"><td width="20%" height="20" align="Center" nowrap><%=(recordset1.fields.item("Name").value)%> <td width="20%" height="20"> <% RecordSet1.movenext %> <%Else%> <td width="5%" height="20" align="center" nowrap>sometext<td width="1%" height="20"><td width="20%" height="20" align="Center" nowrap><td width="20%" height="20"> <% RecordSet1.movenext %> <%end if%> <%Wend%> Now, I will try and explain. This is for a db that has, at present, about 30 tables. Each table is named with a alpha-numeric name. (ie, 2c3e) Each table has a "Rank" field. Each "Rank" field value = the value of a Table name. I hope this is enough information. As you see in the above code. I am setting the "name" of the <input> as being the "Rank" value of the current record. I know the the Request.form() statement calls the "name" value of the <input> statement on the prior page. What I want to know is: How do I pass the "name" value of the <input> statement to the request.form() statement when the value unknown?? I hope I have provided enough information for you to provide me with an solution. Please. Do NOT answer in single line/word replies. I understand alot of about programming. I am just stupid when it comes to the full workings of ASP and VBScript. Thank you. |
|
|
|
||||
|
I have to say, I am not totally undersanding what you mean here... It might just be me, so dont worry too much.
Basically, I think you are saying that there are several form fields being submitted and you want to read in ALL of them, but are not sure what each form element has been named?? Is that right? Please can you clarify before I go on.. Cheers,
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
not sure what you mean either, but if you want to loop through the items in Request.Form then do this:
For Each i In Request.Form Response.Write i & ": " & Request.Form(i) Next Does that help? |
![]() |
| Tags |
| ltinputgt, requstform, puzzle |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding / Showing form fields based on previous form input | John Alexander Hopper | PHP Forum | 1 | Mar 10th, 2008 11:30 |
| help with form input | gncreditcards | Web Page Design | 6 | Jan 23rd, 2008 01:34 |
| adding a field input to the subject in a form | goatsalad | PHP Forum | 1 | Feb 3rd, 2006 14:49 |
| 2 similar input validations on one form | bldstr | JavaScript Forum | 3 | Jan 30th, 2006 21:27 |
| Anybody know how to change the color of a text input form in | Physt | Web Page Design | 7 | Aug 16th, 2004 08:44 |