|
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
Navigation:
[Reply to this message]
|