|
Posted by Hilarion on 11/15/47 11:36
>> Yes, but it it not recommended. If you are really sure you want to do
>> this, i'll give you a hint; you want to 'extract' the values of the post
>> array. If you go this route, please make sure you have read and
>> understood the warning(s) in the function documentation and followed the
>> recommended precautions.
>>
>> In reality though this is generally not a good idea, and almost as bad
>> as setting on register globals.
>>
> Thanks for that. Basically I just want to get an old script to run on a new
> server so I'll probably go for extract.
>
> On a related subject I'm totally confused about how I read the 'action'
> variable in the following :-
>
> echo "<html><head>
> <frameset rows='40,*'>
> <frame src='admin.php?action=head' name='head' scrolling='NO'>
> <frameset cols='170,*'>
> <frame src='admin.php?action=leftframe' name='nav' scrolling='AUTO'>
> <frame src='admin.php?action=mainframe' name='main' scrolling='AUTO'>
> </frameset>
> </head>
> </html>";
>
> Any pointers?
It goes in the URL, so it's a GET method. Use $_GET['action'] or $_REQUEST['action']
(the other one does not depend on the way the value is passed - it includes
GET, POST and COOKIE).
Hilarion
Navigation:
[Reply to this message]
|