You are here: Re: $_POST problems « PHP Language « IT news, forums, messages
Re: $_POST problems

Posted by Jim Michaels on 10/13/65 11:37

BTW, it's possible to mix GET and POST for the same page. in the form I
specified POST for the method, but I also used url variables. and it worked
with $_GET[] and $_POST[].
probably better to stick with one or the other tho when you can.

"Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in message
news:dpkpub$qb1$1@news.onet.pl...
>>> 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]


Удаленная работа для программистов  •  Как заработать на 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

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