You can pass variables to the
$_GET array in the action part of your form tag by changing the url to "bar.php?size=....". This will pass the parameter size to the $_GET array, accessed in your php code by
$_GET["size"] . In a PHP url, anything after the .php? are variables for the $_GET array, separated by the ampersand (&) character. So a url that looks like this:
foo.php?size=1&name=Mike&goal=study&command=download
loads the page foo.bar with the
$_GET having the following variables:
$_GET['size'] = 1;
$_GET['name'] = 'Mike';
$_GET['goal'] = 'study';
$_GET['command'] = 'download';
I should point out that while there is no limit to what you can pass to the
$_GET array, it is visible in the browser url, so should never be used to pass sensitive information such as passwords to the browser.
I will leave it up to you to figure out what size should be set to based on what radio button is selected. A google search should be able to point you in the right direction.
HTH,
d