p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 20th, 2006, 04:28 PM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old January 22nd, 2006, 01:17 PM
Authorized User
Points: 191, Level: 3
Points: 191, Level: 3 Points: 191, Level: 3 Points: 191, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Dublin, , Ireland.
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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")

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2006, 07:38 PM
Friend of Wrox
Points: 5,604, Level: 31
Points: 5,604, Level: 31 Points: 5,604, Level: 31 Points: 5,604, Level: 31
Activity: 41%
Activity: 41% Activity: 41% Activity: 41%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,666
Thanks: 6
Thanked 9 Times in 9 Posts
Send a message via AIM to mat41
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Variables silve1999 Pro Java 1 June 15th, 2006 01:54 PM
Passing variables karlirvin PHP How-To 4 December 2nd, 2005 08:02 PM
passing variables. ashokparchuri ASP.NET 1.1 4 March 18th, 2005 05:36 AM
Passing variables acko ASP.NET 1.x and 2.0 Application Design 1 December 23rd, 2003 09:40 AM
Passing variables jesseleon Access VBA 4 October 24th, 2003 02:45 PM



All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc