Reply to Re: js issue to php

Your name:

Reply:


Posted by Kimmo Laine on 06/03/05 15:59

"Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote
in message news:AeYne.109259$KF7.6591578@phobos.telenet-ops.be...
>A currently existing page is handed a value like this:
> page.htm?code_value
>
>
> in the html of that page :
>
> <script type="text/javascript">
>
> code = (self.location.search) ? self.location.search.substring(1) :
> "none";
>
> if (code == "code_value")
> {
> // build url ...
> }
>
> </script>
>
>
>
> I want to change the js to php ... but how do I get the code value ?
> because, if I understand correctly, php would expect ?code=value


Elementary, dear Watson.

<?php

$code = $_SERVER['QUERY_STRING'];

if($code=="code_value"){
// build code
}
?>


--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com

[Back to original 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

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