|
|
 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

January 20th, 2006, 04:28 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Passing Variables
Hoping some kind soul can help me out.
I have a page where a user inputs data into a form(Page 1). The data is then processed(in this case it's compared against a database for a match). If it matches, the user can choose to update/edit that record or enter different data(Page 2). The problem lies when I choose to edit that record(Page 3 should show the updated changes). I am unable to pass a certain variable from the starting page through... to the 3rd page.
I don't want to use QueryString so I am using hidden forms. I pass the variables from page 1 to page 2 successfully(Again, this is nothing more than the user filling out forms). But when I put the variable into a hidden form, it truncates the words. For example, if the variable was "Empty Set" it only passed "Empty." Since all data passed with this one variable will be 2 words, how can I get it to pass both words?
Thanks.
|

January 22nd, 2006, 01:17 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Location: Dublin, , Ireland.
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
first you could try to use session("your_session") which will be automatically passed over to the next page.
if it's a string use server.HTMLEncode("your_string")
|

January 22nd, 2006, 07:38 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,666
Thanks: 6
Thanked 9 Times in 9 Posts
|
|
I always consider sessions as a last resort and you certainly dont need to encode the value if its being posted via a form.
When you view the source (the html being rendered not the asp source) in page 2 is this the point where its truncated? Try using '" "' around your ASP when assigning a value to the hidden field.
Wind is your friend
Matt
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |