ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 9th, 2000, 03:18 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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

Reply With Quote
  #2  
Old May 10th, 2000, 09:45 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<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

Reply With Quote
  #3  
Old May 12th, 2000, 08:12 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Passing data thru hidden fields


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT