PDA

View Full Version : $_Get[]


weronpc
04-29-2003, 05:01 PM
Hello,

So far, I know 2 ways to work with $_GET[],

one is using the anchor,
eg, <a href=www.page.com?id=6>example</a>

two is using form
eg, <form action="some.php" method="GET">

Do you know anymore other way?

Thanks

Mike

missing-score
04-29-2003, 05:23 PM
As far as I know there isn't. When you use $_GET form, you are telling the form to place the info in the URL, so as similar to an anchor.

mordred
04-29-2003, 08:38 PM
Any URL can have GET parameters attached in the query string after the pathname (like index.php?foo=bar). It is irrelevant if this URL is called from a link, an image's src attribute or through JavaScript, as long as a GET request is made, the GET variables become available to the PHP script.