Q695 Posted February 20, 2009 Share Posted February 20, 2009 There is an error on the page: https://andrews-management.com/applytemp.html You should be changing the center with a case statement. Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766846 Share on other sites More sharing options...
teanza Posted February 20, 2009 Author Share Posted February 20, 2009 thanx! where do i put that php code? (sorry :'( ) what does changing center w case statement mean? ~tina~ Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766847 Share on other sites More sharing options...
farkewie Posted February 20, 2009 Share Posted February 20, 2009 Make this the first line on any php page you want to be https <?php //checking if https if (!$_SERVER['HTTPS']) { //its not so lets redirect to the same page but https header("Location:https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']. "?".$_SERVER['QUERY_STRING']); } ?> Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766856 Share on other sites More sharing options...
Q695 Posted February 20, 2009 Share Posted February 20, 2009 Instead of creating the middle with multiple pages, you should be creating the middle through a case include with switching. Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766860 Share on other sites More sharing options...
teanza Posted February 20, 2009 Author Share Posted February 20, 2009 wow thanx guys! really so nice so my index must be index.php now i suppose? ~tina~ Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766861 Share on other sites More sharing options...
farkewie Posted February 20, 2009 Share Posted February 20, 2009 take this out of you home page <meta http-equiv="Refresh" content="0; URL=https://andrews-management.com"/>"<meta http-equiv="expires" content="0"> and yes needs to be .php Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766863 Share on other sites More sharing options...
teanza Posted February 20, 2009 Author Share Posted February 20, 2009 hey sorry i bailed there. thanx SO MUCH again. i did that, and made my index a .php. i took the html index out of the file folder. the message is: Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/n/d/andrewsmgt/html/index.php:4) in /home/content/a/n/d/andrewsmgt/html/index.php on line 8 line 8 says 'header'. it also doesn't redirect. n e ideas? T H A N K S!! ~tina~ Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766985 Share on other sites More sharing options...
farkewie Posted February 20, 2009 Share Posted February 20, 2009 If you posted that right at the top as i stated it should be line 5??? it has to be the first thing on the page. If there is ANY output before it it will fail. By "output" i mean things like <html> or echo "blahy"; so make that code the VERY top. Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-766992 Share on other sites More sharing options...
teanza Posted February 20, 2009 Author Share Posted February 20, 2009 dude u r SO AWESOME i wanna buy u a murcielago. really, u have helped so much. i feel much better. i know it's prob. no big deal for u guys but i had never used PHP. btw, i had that in the 1st line of my head; not the top of the page so that's why it said it had a header i guess. DUH. ;D ;D ;D ;D ;D ~tina~ Link to comment https://forums.phpfreaks.com/topic/146061-solved-web-form-different-emails-per-a-choice/page/2/#findComment-767073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.