three solutions:

1. turn register_globals off for compatibility purposes via .htaccess
file in the script's directory

2. create a auto_prepend file with the following: extract($_GET), this
should do the trick

3. rewrite the whole code to make any user-input (form) variable to be
$_REQUEST or $_GET/$_POST respectively


--
Maxim Maletsky
[EMAIL PROTECTED]



"Kiswa" <[EMAIL PROTECTED]> wrote... :

> I know its stupid but i´ve been writing a site for a register_globals = on
> enviroment
> now i need to convert all the code to an off setting
> 
> the page is built by sending a whole lot off vars to diferent pages.
> as you can see below the hyperlink sends the id var to the same page and
> then echos the code.
> can anyone help humpty dumpty?
> 
> 
> 
> 
> <font size="2"><a href="left.php?id=1" target="_self">Finansiering</a><BR>
> <?
>  If($id==1){
>  echo "<a href=info/leas.htm target=\"mainFrame\"><font
> color=\"#00CCCC\">Leasing</font></a><BR>
>  <a href=info/avb.htm target=\"mainFrame\"><font color=\"#00CCCC\">Räntefri
> avbet.</font></a><BR>
>  <a href=info/stul.htm target=\"mainFrame\"><font
> color=\"#00CCCC\">Studentlån</font></a><BR>";
> };
> ?>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to