472,354 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

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?refresh= 1&bono="+bono+"&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%20%20%20%20%20%20%20%20

at the second refresh the simboloīs variable shows at the navegation
bar a value of:
&simbolo=?%20%20%20%20%20%20%20%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(simbolo.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("simbolo")%>

At refresh time (via onclick) the simbolo value is taken via
<%simbolo=(request("simbolo"))%then the new value is stored using
<%session("simbolo")= 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?refresh=1& simbolo="+simbolo+"&de_moneda="+de_moneda;
alert ("value"+simbolo);

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="checkout_pedido.asp">
<input type="hidden" name="simbolo" value="<%=simbolo%>">

Help will be appreciatted.

Aug 26 '06 #1
0 1484

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

Similar topics

5
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...
1
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:...
14
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...
6
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...
8
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...
4
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...
6
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...
3
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...
4
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.