PDA

View Full Version : $_POST array, but $_GET array??


Ultragames
04-07-2005, 12:07 AM
Is there a way to create an array through $_GET?

bend3r
04-07-2005, 12:32 AM
You just have to replace your form method to "get" and you can use that array. It appends the values to the link rather then sending them without the link. The $_POST method is slightly more secure, but it just depends on what you're doing.

rlemon
04-07-2005, 12:48 AM
just use $_REQUEST ;)

Ultragames
04-07-2005, 12:56 AM
ok, but how do i write the array? Im making a link, not using a form. How do i write an array in the URL?

Edit: Soved. website.com/page.php?variable%5B%5D=value1&variable%5B%5D=value2