dbit Posted September 22, 2007 Share Posted September 22, 2007 We are trying to get this form select to Post to an eMail as well redirect to different pages depending on a Yes or No answer. <select name="Have_the_Investment" class="business-solution" > <option value="Select">Select One</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> We have the following which directs to the pages but removes the post to the email. <?php if($_REQUEST['redirect']){ print "<meta http-equiv='refresh' content='0; url={$_REQUEST[redirect]}'>"; } ?> <select name="redirect" class="business-solution" > <option value="Select">Select One</option> <option value="download.html">Yes</option> <option value="success.html">No</option> </select> :-\ Quote Link to comment https://forums.phpfreaks.com/topic/70275-form-field-select-option-post-and-redirect/ Share on other sites More sharing options...
sdi126 Posted September 22, 2007 Share Posted September 22, 2007 Im not sure what the problem is? Do you have an error? You should do your redirect using php like so: header("location: ".$_REQUEST["redirect"]); Quote Link to comment https://forums.phpfreaks.com/topic/70275-form-field-select-option-post-and-redirect/#findComment-352970 Share on other sites More sharing options...
BlueSkyIS Posted September 22, 2007 Share Posted September 22, 2007 and follow header() with exit; Quote Link to comment https://forums.phpfreaks.com/topic/70275-form-field-select-option-post-and-redirect/#findComment-352985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.