473,549 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems passing session variable - HLP WILL BE APPRECIATTED

Hello Agn,
1.-
Being at the a.asp I refresh the page and session variables using a
JavaScript function:

{
simbolo = window.document .frmdir.simbolo .value;
window.location .href="checkout _gastos.asp?ref resh=1&bono="+b ono+"&simbolo=" +simbolo;
}

2.- Then I pass the values without problem to b.asp via frmdir.submit()

3.-
At b.asp when I refresh the page, based upon a variable change then the
simbolo´s variable shows at the navegation bar a value of:
&simbolo=€%20%2 0%20%20%20%20%2 0%20%20

at the second refresh the simbolo´s variable shows at the navegation
bar a value of:
&simbolo=?%20%2 0%20%20%20%20%2 0%20%20

So the refresh routine substitutes Euro value for ? value and add a lot
of %20 characters that I think that could be removed with simbolo =
unescape(simbol o.substring(0,2 ));
but the problem of the Euro character still´s.

*************** *********** PROCEDURE MECHANISM
b.asp********** *************** **

First time page it´s loaded the simbolo value is taken from the info
sended by a.asp using:
<%simbolo = request.form("s imbolo")%>

At refresh time (via onclick) the simbolo value is taken via
<%simbolo=(requ est("simbolo")) %then the new value is stored using
<%session("simb olo")= simbolo%>

At the Refresh function I declare:
var simbolo=""
simbolo = window.document .frmdir.simbolo .value;

And then the page is reloaded:
window.location .href="checkout _pago.asp?refre sh=1&simbolo="+ simbolo+"&de_mo neda="+de_moned a;
alert ("value"+simbol o);

That alert still shows the correct value of simbol but when the program
reloads it´s value changes (step 3)
PD: At the form simbolo is declared as hidden
<form name="frmdir" method="POST" action="checkou t_pedido.asp">
<input type="hidden" name="simbolo" value="<%=simbo lo%>">

Help will be appreciatted.

Aug 26 '06 #1
0 1539

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5930
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page contains: <?php $_SESSION = ""; $_SESSION = "";
1
7771
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION =...
14
3125
by: Antoni | last post by:
Hello, I wondered if anyone could offer some guidance over my php script. I was hoping the example would allow the user to click the submit buttons and the item number increment. And when the user clicks, the my basket icon the items.php scripts starts and the variables from the current script are passed to this. I tried to display the...
6
2240
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server a for example and it goes offline or fails their session is lost also - even though the application becomes available on server b. I have heard...
8
1749
by: Marc Hoeve | last post by:
Hi everybody I'm setting up 2 websites for a friend of mine, en I'm have problems with one of the sites. The situation: I have 2 different domains (both in the .NL domain). Both domains provides the possibility for users to log in. The loginscript and the databases are hosted at server 1. The site at server 2 contains a link to the...
4
9195
by: opt_inf_env | last post by:
Hello, I know three ways to pass variables form one page to another. The first one is to declare and set session variable. In this case if one goes to another page (by clicking on hyperlink or pressing a button) value of a session variable will be automatically seen on the new page. The second way is to set hidden variables in the form and...
6
3245
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A query-string flag is used to indicate to the page whether it should instantiate a new instance of the object or access an existing instance from the...
3
1130
by: l-touched | last post by:
Hello, I am using authentication type = FORMS I need to use Session Variables for passing data between ASPX pages, but I have the following problem: If I call some page without doing athentification before, I will be redirected to Login.aspx, there in Login.aspx I assign (in Login.aspx.VB) this: Session("VARIABLE") = "SOMESTRING", after...
4
1652
by: campwes | last post by:
Hi! I have what I hope is a simple problem. I have 2 web forms. The first form is a welcome page with a textbox and button (in a user control). What's supposed to happen is that a user will enter data in the textbox and click the button. The event handler for the button then has to send that value to a the second web form containing a...
0
7548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7986
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6074
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5391
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.