Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: passing variable


Message #1 by payam <torkian@c...> on Tue, 28 Jan 2003 11:27:25 +0330 (IRT)
Sorry, I misread your message when I just posted now.

It is impossible. Think about how the page request thing works. You are
asking the JavaScript to alter the HTTP request after the request has been
made as the JavaScript won't be loaded into the browser until it has
received the response after the request. The only way it would be possible
would be to somehow capture the browser's refresh event and tell it to
submit a form instead.

Cookies are the method of sending variables to a server without submitting a
form. 

-----Original Message-----
From: payam [mailto:torkian@c...]
Sent: 28 January 2003 13:27
To: JavaScript HowTo
Subject: [javascript_howto] passing variable


how can I pass a variable to my "php code" when I refresh my page not using
"cookie"s?

is this possible with <INPUT>?





  Return to Index