You are here: Re: Modify $_POST « PHP Programming Language « IT news, forums, messages
Re: Modify $_POST

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация