|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing data thru hidden fields
<i><b>Originally posted by : Raj Narayan (Raj.Narayan@ecoutlook.com)</b></i><br />HTML & ASP Gurus!!<br /><br />I need to pass data (like description) thru a hidden field from a form to an ASP. I use POST method on the form to send the data to the ASP. When I do a Request.Form("description"), I get the first word alone. i.e. If the hidden field had the value "This beautiful bag is only $10", Request.Form("description") returns just "This" and it drops off the rest. I tried to replace all spaces in the values to %20, + etc., but it wont help. <br /><br />If you guys know the way to pass data with embedded spaces, I would sincerely appreciate it.<br /><br />Thanks for your help!<br />Raj
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve</b></i><br />Here is an example I put together and used your data example. It appears to work. <br /><br />Page 1<br /><html><br /><head><br /><title>New Page 1</title><br /><meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br /></head><br /><br /><body><br /><br /><form method="POST" action="form2.asp"><br /><p><input type="text"<br /> name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset"<br /> value="Reset" name="B2"></p><br /></form><br /></body><br /></html><br /><br /><br />Page 2<br /><br /><html><br /><br /><head><br /><title>New Page 1</title><br /><meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br /></head><br /><br /><body><br /><br /><form method="POST" action="form2.asp"><br /> <input type="hidden" name="t1" value="<% = request("T1")%>""><p><input type="text"<br /> name="T2" size="20"><input type="submit" value="Submit" name="B1"><input type="reset"<br /> value="Reset" name="B2"></p><br /></form><br /></body><br /></html><br /><br /><br />------------<br />Raj Narayan at 5/9/2000 1:18:33 PM<br /><br />HTML & ASP Gurus!!<br /><br />I need to pass data (like description) thru a hidden field from a form to an ASP. I use POST method on the form to send the data to the ASP. When I do a Request.Form("description"), I get the first word alone. i.e. If the hidden field had the value "This beautiful bag is only $10", Request.Form("description") returns just "This" and it drops off the rest. I tried to replace all spaces in the values to %20, + etc., but it wont help. <br /><br />If you guys know the way to pass data with embedded spaces, I would sincerely appreciate it.<br /><br />Thanks for your help!<br />Raj
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : ravi shankar (rsa_sa@hotmail.com)</b></i><br />hi<br />if you are trying to access the passed hidden field this way<br /><input type="text" name="t1" value=<% = request("description")%>><br />then the mistake is " you have to give <% = request("description")%> with in quotes like <br /><br /><input type="text" name="t1" value="<% = request("description")%>"><br /><br />i think it will help you. if the problem is something and if you fine the solution then please let me know too <br />ravi<br /><br /><br /><br />------------<br />steve at 5/10/2000 7:45:44 AM<br /><br />Here is an example I put together and used your data example. It appears to work. <br /><br />Page 1<br /><html><br /><head><br /><title>New Page 1</title><br /><meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br /></head><br /><br /><body><br /><br /><form method="POST" action="form2.asp"><br /><p><input type="text"<br /> name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset"<br /> value="Reset" name="B2"></p><br /></form><br /></body><br /></html><br /><br /><br />Page 2<br /><br /><html><br /><br /><head><br /><title>New Page 1</title><br /><meta name="GENERATOR" content="Microsoft FrontPage 3.0"><br /></head><br /><br /><body><br /><br /><form method="POST" action="form2.asp"><br /> <input type="hidden" name="t1" value="<% = request("T1")%>""><p><input type="text"<br /> name="T2" size="20"><input type="submit" value="Submit" name="B1"><input type="reset"<br /> value="Reset" name="B2"></p><br /></form><br /></body><br /></html><br /><br /><br />------------<br />Raj Narayan at 5/9/2000 1:18:33 PM<br /><br />HTML & ASP Gurus!!<br /><br />I need to pass data (like description) thru a hidden field from a form to an ASP. I use POST method on the form to send the data to the ASP. When I do a Request.Form("description"), I get the first word alone. i.e. If the hidden field had the value "This beautiful bag is only $10", Request.Form("description") returns just "This" and it drops off the rest. I tried to replace all spaces in the values to %20, + etc., but it wont help. <br /><br />If you guys know the way to pass data with embedded spaces, I would sincerely appreciate it.<br /><br />Thanks for your help!<br />Raj
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Passing data thru hidden fields |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|