Simple Form Code, Just Can't Find It! Help?

Discussion in 'HTML & Website Design' started by GH Fever, Dec 15, 2008.

  1. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #61
    No problem I didn't do anything really.
     
    SiteTalkZone, Dec 17, 2008 IP
  2. GH Fever

    GH Fever Peon

    Messages:
    432
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #62
    Hey everyone,

    Okay so this has been working great and all of a sudden now, when I enter an access code to get forwarded to my correct login page, I get this error -

    
    Warning: Cannot modify header information - headers already sent by (output started at /home/content/g/h/f/ghfever/html/PLMPAYMENT/clientarea.php:3) in /home/content/g/h/f/ghfever/html/PLMPAYMENT/clientarea.php on line 8
    Code (markup):
    I've looked at line 8 and this is what it says -

        case 1001:header('Location: /edwardon/index.php');exit;break;
    Code (markup):

    I'm not understanding what the problem is!
     
    GH Fever, Dec 22, 2008 IP
  3. GH Fever

    GH Fever Peon

    Messages:
    432
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #63
    Here is the full code of the entire page -

    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    
    <?php
    $msg='Please Enter Your Code.';
    $intNumber=intval($_POST['codenumber']);
    if ($_POST['subcode']) {
      switch ($intNumber) {
        case 1001:header('Location: /edwardon/index.php');exit;break;
        case 1002:header('Location: /marcosds/index.php');exit;break;
        case 1003:header('Location: /erichj/index.php');exit;break;
        case 1004:header('Location: /louerdesm/index.php');exit;break;
        case 1005:header('Location: /luism/index.php');exit;break;
        case 1006:header('Location: /young/index.php');exit;break;
        case 1007:header('Location: /climittob/index.php');exit;break;
        case 1008:header('Location: /stevenl/index.php');exit;break;
        case 1009:header('Location: /rosab/index.php');exit;break;
        case 1010:header('Location: /mr.honigmanf/index.php');exit;break;
        case 1011:header('Location: /joek/index.php');exit;break;
        case 1012:header('Location: /rosmiraa/index.php');exit;break;
        case 1013:header('Location: /royd/index.php');exit;break;
        case 1014:header('Location: /eucarior/index.php');exit;break;
        case 1015:header('Location: /josec/index.php');exit;break;
        case 1016:header('Location: /felipee/index.php');exit;break;
        case 1017:header('Location: /antonior/index.php');exit;break;
        case 1018:header('Location: /alejandrou/index.php');exit;break;
        case 1019:header('Location: /rodrigom/index.php');exit;break;
        case 1020:header('Location: /julioc/index.php');exit;break;
        case 1021:header('Location: /irmao/index.php');exit;break;
        case 1022:header('Location: /nataliac/index.php');exit;break;
        case 1023:header('Location: /randolfom/index.php');exit;break;
        case 1024:header('Location: /kurts/index.php');exit;break;
        case 1025:header('Location: /fernandoa/index.php');exit;break;
        case 1026:header('Location: /jorgeb/index.php');exit;break;
        case 1027:header('Location: /julioi/index.php');exit;break;
        case 1028:header('Location: /zacharial/index.php');exit;break;
        case 1029:header('Location: /wagnert/index.php');exit;break;
        case 1030:header('Location: /rodolfom/index.php');exit;break;
        case 1031:header('Location: /ritad/index.php');exit;break;
        case 1032:header('Location: /anthonyp/index.php');exit;break;
        case 1033:header('Location: /rubenr/index.php');exit;break;
        case 1034:header('Location: /zaheeda/index.php');exit;break;
        case 1035:header('Location: /fabioj/index.php');exit;break;
        case 1036:header('Location: /josen/index.php');exit;break;
        case 1037:header('Location: /marisolg/index.php');exit;break;
        case 1038:header('Location: /luzr/index.php');exit;break;
        case 1039:header('Location: /manuelm/index.php');exit;break;
        case 1040:header('Location: /tahimip/index.php');exit;break;
        case 1041:header('Location: /juanp/index.php');exit;break;
        case 1042:header('Location: /bellac/index.php');exit;break;
        case 1043:header('Location: /cyntiavg/index.php');exit;break;
        case 1044:header('Location: /felixt/index.php');exit;break;
        case 1045:header('Location: /gustavom/index.php');exit;break;
        case 1046:header('Location: /alexc/index.php');exit;break;
        case 1047:header('Location: /angels/index.php');exit;break;
        case 1048:header('Location: /anab/index.php');exit;break;
        case 1049:header('Location: /ronaldom/index.php');exit;break;
        case 1050:header('Location: /ivans/index.php');exit;break;
        case 1051:header('Location: /roquem/index.php');exit;break;
        case 1052:header('Location: /stefanop/index.php');exit;break;
        case 1053:header('Location: /cliftonu/index.php');exit;break;
        case 1054:header('Location: /felixf/index.php');exit;break;
        case 1055:header('Location: /joelc/index.php');exit;break;
        case 1056:header('Location: /graziellyf/index.php');exit;break;
        case 1057:header('Location: /yuliyap/index.php');exit;break;
        case 1058:header('Location: /michaelw/index.php');exit;break;
        case 1059:header('Location: /olgas/index.php');exit;break;
        case 1060:header('Location: /myrtelinar/index.php');exit;break;
        case 1061:header('Location: /josedc/index.php');exit;break;
        case 1062:header('Location: /gilbertom/index.php');exit;break;
        case 1063:header('Location: /ismaelp/index.php');exit;break;
        case 1064:header('Location: /marvinc/index.php');exit;break;
        case 1065:header('Location: /nancyhm/index.php');exit;break;
        case 1066:header('Location: /juang/index.php');exit;break;
        case 1067:header('Location: /josem/index.php');exit;break;
        case 1068:header('Location: /mariag/index.php');exit;break;
        case 1069:header('Location: /carlislem/index.php');exit;break;
        case 1070:header('Location: /deborahe/index.php');exit;break;
        case 1071:header('Location: /Jaimes/index.php');exit;break;
        case 1072:header('Location: /oscarg/index.php');exit;break;
        case 1073:header('Location: /claudiap/index.php');exit;break;
        case 1074:header('Location: /lloydc/index.php');exit;break;
        case 1075:header('Location: /marcosn/index.php');exit;break;
        case 1076:header('Location: /rexl/index.php');exit;break;
        case 1077:header('Location: /irmaq/index.php');exit;break;
        case 1078:header('Location: /rolandh/index.php');exit;break;
        case 1079:header('Location: /gerardor/index.php');exit;break;
        case 1080:header('Location: /dorisd/index.php');exit;break;
        case 1081:header('Location: /sergios/index.php');exit;break;
        case 1082:header('Location: /luzmr/index.php');exit;break;
        case 1083:header('Location: /hector/index.php');exit;break;
        case 1084:header('Location: /isebelo/index.php');exit;break;
        case 1085:header('Location: /carlosm/index.php');exit;break;
        case 1086:header('Location: /olgac/index.php');exit;break;
        case 1087:header('Location: /ovetr/index.php');exit;break;
        case 1088:header('Location: /franciscob/index.php');exit;break;
        case 1089:header('Location: /michaeln/index.php');exit;break;
        case 1090:header('Location: /victorb/index.php');exit;break;
        case 1091:header('Location: /christal/index.php');exit;break;
        case 1092:header('Location: /joseq/index.php');exit;break;
        case 1093:header('Location: /everlym/index.php');exit;break;
        case 1094:header('Location: /johno/index.php');exit;break;
        case 1095:header('Location: /michaeljn/index.php');exit;break;
        case 1096:header('Location: /cesarv/index.php');exit;break;
        case 1097:header('Location: /dorav/index.php');exit;break;
        case 1098:header('Location: /gerardod/index.php');exit;break;
        case 1099:header('Location: /angelic/index.php');exit;break;
        case 1100:header('Location: /alif/index.php');exit;break;
        case 1101:header('Location: /joseav/index.php');exit;break;
        case 1102:header('Location: /samuelm/index.php');exit;break;
        case 1103:header('Location: /luisr/index.php');exit;break;
        case 1104:header('Location: /williamw/index.php');exit;break;
        case 1105:header('Location: /joseg/index.php');exit;break;
        case 1106:header('Location: /mildredm/index.php');exit;break;
        case 1107:header('Location: /felipedc/index.php');exit;break;
        case 1108:header('Location: /laralo/index.php');exit;break;
        case 1109:header('Location: /danielm/index.php');exit;break;
        case 1110:header('Location: /aracelisg/index.php');exit;break;
        case 1111:header('Location: /estherp/index.php');exit;break;
        case 1112:header('Location: /juancg/index.php');exit;break;
        case 1113:header('Location: /aharb/index.php');exit;break;
        case 1114:header('Location: /camrenr/index.php');exit;break;
        case 1115:header('Location: /carolinat/index.php');exit;break;
        case 1116:header('Location: /eddiem/index.php');exit;break;
        case 1117:header('Location: /garym/index.php');exit;break;
        case 1118:header('Location: /leonardop/index.php');exit;break;
        case 1119:header('Location: /lionelp/index.php');exit;break;
        case 1120:header('Location: /lionelh/index.php');exit;break;
        case 1121:header('Location: /robertc/index.php');exit;break;
        case 1122:header('Location: /jeremiasm/index.php');exit;break;
        case 1123:header('Location: /delroyb/index.php');exit;break;
        case 1124:header('Location: /billyc/index.php');exit;break;
        default:$msg='Code not recognised';
      }
    }
    ?>
    
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
    <meta name="description" content="description"/>
    <meta name="keywords" content="keywords"/> 
    <meta name="author" content="author"/> 
    <link rel="stylesheet" type="text/css" href="default.css"/>
    <title>Wineberg, Lopez & Rodriguez Company</title>
    </head>
    
    <body>
    
    <div class="main">
    
    	<div class="main_left">
    		
    		<div class="header">
    		<h1><a href="index.html">Wineberg,<br>
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lopez<br>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; & Rodriguez Company</a></h1>
    		</div>
    
    		<div class="link_menu">
    			<a href="index.html" accesskey="1">Home</a>
    			<a href="form.html" accesskey="2">Forms</a>
    			<a href="process.html" accesskey="3">Process</a>
    			<a href="contact.html" accesskey="4">Contact</a>
    		</div>
    
    		<div class="content">
    			
    			<h1>Wineberg, Lopez & Rodriguez Company</h1>
    			<br>
    
    <?=$msg?><br /><br />
    <form action="clientarea.php" method="post">
      Access Code: <input type="text" name="codenumber" value="<?=($intNumber==0 ? '' : $intNumber)?>" /><br />
      <input type="submit" name="subcode" value="Send" />
    </form>
    			
    
    		</div>
    
    	</div>
    
    	<div class="main_right">
    
    		<div class="link_project">
    
                    <img src="./img/sidebar.jpg"><br><br>
    		<br>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CALL US TODAY TO GET YOUR LOAN &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MODIFICATION PLAN STARTED</p><br>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CALL US AT 
    		<br><big><big><big><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(407) 854-5222</b></big></big></big><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Business Hours: 9:00 AM - 9:00 PM (EST)
    
    		<br><br>
    
    		<div class="link_menu">
    			<a href="http://pleaselowermypayment.org/lists/?p=subscribe" accesskey="1">Subscribe to our E-Mail List!</a>
    		</div>
    
    		<br><br>
    
    		<a href="http://pleaselowermypayment.org/hcl/module.php?module=HelpCenter"><img src="http://pleaselowermypayment.org/rep.jpg" border="0"></a>
    
    		<br><br>
    		
    		<a href="http://pleaselowermypayment.org/clientarea.html"><img src="./img/call.gif" border="0"></a>
    <BR><BR>
    		</div>
    
    	</div>
    
    	<div class="footer">
    
    		<div class="left"> <a href="index.html">Weinberg, Lopez & Rodriguez&copy</a> | Developed by <a href="http://designs-by-dm.com/">Designs by DM 2008&copy</a>
    
    		
    
    	</div>
    
    </div>
    
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-6613077-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    
    </body>
    
    </html>
    
    Code (markup):
     
    GH Fever, Dec 22, 2008 IP
  4. GH Fever

    GH Fever Peon

    Messages:
    432
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #64
    Can anyone help?
     
    GH Fever, Dec 22, 2008 IP
  5. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #65
    It's the DOCTYPE line at the start:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    
    Code (markup):
    You need to move this AFTER the chunk of PHP code. When using header() you can't have anything sent to the browser before using it.
     
    Yesideez, Dec 22, 2008 IP