Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request.Form

Status
Not open for further replies.

diarratech

Technical User
Jul 7, 2000
41
FR
I have a variable that I assign to a textbox. Eg :
<input type="text" name="<%=sInputName%><%=cstr(i)%>">

Now, I want to take all the information of the textbox and send it by mail but I have trouble with the syntax of that request.form: E.g

strInfo = strInfo + "<tr bgcolor=#CCCCCC><td>Books</td><td>" + request.Form(" & <%=sInputName%> & ") + "</td></tr>"

Thank you very much for your help
 
change it a little bit:

Code:
<input type="text" name="<%=sInputName%> "value="<%=cstr(i)%>">



ttmug.gif
 
my spacebar did something wrong:
Code:
<input type="text" name="<%=sInputName%>" value="<%=cstr(i)%>">

ttmug.gif
 
and now i see that you use <% %> in the strInfo assignment, but that is already script language.

Code:
strInfo = strInfo + "<tr bgcolor=#CCCCCC><td>Books</td><td>" + 
request.Form(" & sInputName & ") + "</td></tr>"

But don't you need a number here too?
Code:
strInfo = strInfo + "<tr bgcolor=#CCCCCC><td>Books</td><td>" + 
request.Form(" & sInputName & Cstr(i) & ") + "</td></tr>"

ttmug.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top