This is probably very easy but im also very new to php.
Im looking for a way that i can have checkboxes on a form that can be passed via the submit button to a php file that generates a Header locate based on the values.
for example
Apples X
Pears
Oranges X
would result in the output php file doing a header(“Location:url.com/Apples+Oranges”);
Im haivng difficulty working out how to get the checkbox values as a string and secondly in doing this above the header causes the header to fail for obvious reasons so I guess i have to use some output buffer?
Thanks!
Basically you just get the post variables and redirect before any other output is made: