Reply to Re: [PHP] html hyperlink and PHP

Your name:

Reply:


Posted by Greg Donald on 05/06/05 06:48

On 5/5/05, Oscar Andersson <oscarandersson2@hotmail.com> wrote:
> If i do like this.
> <a href="huvudsida.php?action=lista" target="_self">
>
> How does the webbrowser send this? With post or get or ..?

get

> Shall i get the action with $_POST or $_GET?

$_GET or $_REQUEST

> 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

You can add something like this to see what is coming through when you
post the form:

echo '<pre>';
print_r( $_REQUEST );
echo '</pre>';


--
Greg Donald
Zend Certified Engineer
http://destiney.com/

[Back to original 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

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