Redirect user upon form submission

pharmacytov

New Member
Hey i want to use php to redirect a user to a url depending on which radio buttons they have been selected in the form once they click the submit button.I have this thus far but it does not work so its pretty useless.\[code\] <?php // variables form form $Country = $_POST['Country']; ?> <form action="<?php print $Country ?>" method="post"> <input name="Country" type="radio" value="http://www.istockphoto.com" /> South Africa<br /> <input name="Country" type="radio" value="http://www.jamieburger.co.za" /> England<br /> <input name="" type="submit" value="http://stackoverflow.com/questions/3820035/Submit"/> </form>\[/code\]Any help would be greatly appreciated.
 
Back
Top