Re: html hyperlink and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could have tried it in the time it took you to post...

It's GET.


On Thu, May 5, 2005 7:28 pm, Oscar Andersson said:
> If i do like this.
> <a href="huvudsida.php?action=lista" target="_self">
>
> How does the webbrowser send this? With post or get or ..?
> Shall i get the action with $_POST or $_GET?
> ex.
>   @$action = $_POST['action'];
>   if(!$action)
>     @$action = $_GET['action'];
>         processRequest($action);
>
> If i do like this
> <form action="huvudsida.php" method="post">
> <INPUT TYPE="HIDDEN" VALUE="lista" NAME="action">
> </form>
> How do i get the action in my php page. I think it is with $action =
> $_POST['action'];
> but it doesent work.
>
> Tnx for any help mates
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux