RE: [PHP] newbie question ; calling php script with parrameters from html
| From: | Chris W. Parker | Date: | Wed, 02 Feb 2005 23:13:20 +0000 |
| Subject: | RE: [PHP] newbie question ; calling php script with parrameters from html | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-207945@lists.php.net to get a copy of this message | ||
Sagaert Johan <mailto:sagaert.j@belgacom.net>
on Wednesday, February 02, 2005 2:38 AM said:
> can i use this kind of construction in my html code ?
>
> <a href="test.php?selection=high">Select high</a>
Yes.
> if yes , how do i retrieve the passed string in the php code
<?php
$value = $_GET['selection'];
?>
Be sure to validate the data first though.
Chris.