You are here: Re: Running PHP code in Javascript function « PHP Programming Language « IT news, forums, messages
Re: Running PHP code in Javascript function

Posted by mcauser on 11/24/05 07:38

Your could possibly use some form of AJAX inside your javascript
function to post the data to another php page that sets the variables.

You wont be able to access the session variables on the above page that
contains the javascript though because the php code on the page has
already been executed prior to the javascript being interpreted. You
will need to either refresh the page or navigate to another.

If you are going to do that, you might as well just include at the top
of the subsequent page the save session vars script...

 

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

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