| 
 Posted by Chung Leong on 07/24/06 15:37 
Simon Rigby wrote: 
> I was hoping to call a javascript function from the onclick event of 
> the link, then assign a new $_POST variable and then submit the form 
> (hence enabling me to read the $_POST value from the receiving page. 
> 
> Im aware that I could do the same thing with a $_SESSION but as this is 
> the last stage of this app and I havent had to use sessions yet I was 
> hoping to avoid it (for no real reason admittedly - I just got 
> interested in the solution above as an idea). 
 
I think people are getting too hung up on the Javascript question and 
missed the main issue. The problem with your approach is that it breaks 
a number of browser features. Open ing a link in a new window/tab will 
not work. Bookmarking will not work. Page saving will not work 
correctly. Pressing the back and refresh buttons will bring up warning 
messages. 
 
The end-user experience is what matters, not a programmer's preference 
for doing things.
 
  
Navigation:
[Reply to this message] 
 |