Parse error: syntax error, unexpected T_LNUMBER

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cboratenski
    Sergeant

    • Sep 2009
    • 23

    Parse error: syntax error, unexpected T_LNUMBER

    I made some updates to the forms on the following pages of my website:



    I published the pages and then received the following error when viewing in MS Explorer:

    Parse error: syntax error, unexpected T_LNUMBER in /home/startupm/public_html/mobilecompassinc.com/March_Events.php on line 27

    I'm a newbie so HTML editing is not my forte, but when viewing line 27 of the HTML code for the page this is all that is shown (minus quotes)... "}"

    Any help you can provide with understanding this error and how to fix it would be greatly appreciated.

    Thanks,
    Cri
  • mattski
    First Sergeant

    • Jan 2008
    • 78

    #2
    Re: Parse error: syntax error, unexpected T_LNUMBER

    This is a common error that PHP gives when something is not matched up. You could be missing a ";" or have a parenthesis or bracket that doesn't have a match.

    Without seeing your code I can't tell for sure what the issue is. Often times line number it gives you isn't the problem but it's something missing from a line above it and PHP errors out when it doesn't find what it expects.

    If you post your code I can take a look, but to start with check the lines above line 27 for a missing ";" that is the most likely culprit.
    Mattski

    http://www.ScorpioFire.com


    Comment

    • cboratenski
      Sergeant

      • Sep 2009
      • 23

      #3
      Re: Parse error: syntax error, unexpected T_LNUMBER

      Thanks, here's the actual code:
      How do I actually edit the HTML code? If I right click on "Page HTML" I can see the code, but I can't edit it.

      Thanks,
      Cri

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>February '09 Webcast Replay</title>
      <meta name="AUTHOR" content="Mobile Compass">
      <meta name="KEYWORDS" content="Understanding the Mobile Value Chain,Mobile API,Mobile Vendor,SMS, Mobile Value Chain">
      <meta name="DESCRIPTION" content="Understanding the Mobile Value Chain Webinar showing the structure of the mobile value chain and how messages flow throught value chain players.">
      <meta name="GENERATOR" content="Created by BlueVoda">
      <style type="text/css">
      div#container
      {
      width: 867px;
      position: relative;
      margin-top: 0px;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
      }
      body
      {
      text-align: center;
      margin: 0;
      }
      </style>
      <script language="JavaScript" type="text/javascript">
      <!--
      function ValidateWebcast(theForm)
      {
      if (theForm.Editbox5.value == "")
      {
      alert("Please enter a value for the \"First Name\" field.");
      theForm.Editbox5.focus();
      return false;
      }
      if (theForm.Editbox5.value.length < 1)
      {
      alert("Please enter at least 1 characters in the \"First Name\" field.");
      theForm.Editbox5.focus();
      return false;
      }
      if (theForm.Editbox6.value == "")
      {
      alert("Please enter a value for the \"Last Name\" field.");
      theForm.Editbox6.focus();
      return false;
      }
      if (theForm.Editbox6.value.length < 1)
      {
      alert("Please enter at least 1 characters in the \"Last Name\" field.");
      theForm.Editbox6.focus();
      return false;
      }
      if (theForm.Editbox9.value == "")
      {
      alert("Please enter a value for the \"Phone\" field.");
      theForm.Editbox9.focus();
      return false;
      }
      if (theForm.Editbox9.value.length < 10)
      {
      alert("Please enter at least 10 characters in the \"Phone\" field.");
      theForm.Editbox9.focus();
      return false;
      }
      var strValue = theForm.Editbox10.value;
      var strFilter = /^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i;
      if (!strFilter.test(strValue))
      {
      alert("Please enter a valid email address.");
      return false;
      }
      if (theForm.Editbox10.value == "")
      {
      alert("Please enter a value for the \"Email\" field.");
      theForm.Editbox10.focus();
      return false;
      }
      if (theForm.Editbox10.value.length < 1)
      {
      alert("Please enter at least 1 characters in the \"Email\" field.");
      theForm.Editbox10.focus();
      return false;
      }
      return true;
      }
      //-->
      </script>
      </head>
      <body bgcolor="#FFFFFF" text="#000000">
      <div id="container">
      <div id="bv_Text4" style="position:absolute;left:553px;top:33px;width :320px;height:45px;z-index:12;" align="left">
      <font style="font-size:32px" color="#FFFFFF" face="Arial Black">Mobile Compass</font></div>
      <div id="bv_Text1" style="position:absolute;left:643px;top:93px;width :207px;height:22px;z-index:13;" align="left">
      <font style="font-size:19px" color="#FFFFFF" face="Arial">Your Mobile Navigators</font></div>
      <div id="bv_Image4" style="overflow:hidden;position:absolute;left:26px ;top:143px;z-index:14" align="left">
      <a href="http://www.mobilecompassinc.com/Home.html"><img src="images/Home Button.jpg" id="Image4" alt="" align="top" border="0" style="width:120px;height:36px;"></a></div>
      <div id="bv_Image5" style="overflow:hidden;position:absolute;left:145p x;top:143px;z-index:15" align="left">
      <a href="http://www.mobilecompassinc.com/Services.html"><img src="images/Services Button.jpg" id="Image5" alt="" align="top" border="0" style="width:120px;height:36px;"></a></div>
      <div id="bv_Image6" style="overflow:hidden;position:absolute;left:263p x;top:143px;z-index:16" align="left">
      <a href="http://www.mobilecompassinc.com/Events&News.html"><img src="images/Events & News Button.jpg" id="Image6" alt="" align="top" border="0" style="width:180px;height:36px;"></a></div>
      <div id="bv_Image7" style="overflow:hidden;position:absolute;left:442p x;top:143px;z-index:17" align="left">
      <a href="http://www.mobilecompassinc.com/Resources.html"><img src="images/Resources Button.jpg" id="Image7" alt="" align="top" border="0" style="width:134px;height:36px;"></a></div>
      <div id="bv_Image8" style="overflow:hidden;position:absolute;left:576p x;top:143px;z-index:18" align="left">
      <a href="http://www.mobilecompassinc.com/About_Us.html"><img src="images/About Us.jpg" id="Image8" alt="" align="top" border="0" style="width:135px;height:36px;"></a></div>
      <div id="bv_Image9" style="overflow:hidden;position:absolute;left:711p x;top:143px;z-index:19" align="left">
      <a href="http://www.mobilecompassinc.com/Contact_Us.php"><img src="images/Contact Us Button.jpg" id="Image9" alt="" align="top" border="0" style="width:139px;height:36px;"></a></div>
      <div id="bv_Text7" style="position:absolute;left:299px;top:937px;widt h:310px;height:32px;z-index:20;" align="center">
      <font style="font-size:13px" color="#000000" face="Arial">Mobile Compass LLC.&nbsp; Evergreen, Colorado<br>
      Fax +1(815) 301-6534&nbsp; Phone +1(303) 731-5630</font></div>
      <div id="bv_Text3" style="position:absolute;left:62px;top:281px;width :349px;height:324px;z-index:21;" align="left">
      <font style="font-size:16px" color="#800000" face="Arial"><b><i>Understanding the Mobile Value Chain<br>
      </i></b></font><font style="font-size:16px" color="#000000" face="Arial">Speakers: </font><font style="font-size:16px" color="#0000FF" face="Arial"><u><a href="http://www.mobilecompassinc.com/About_Us.html">Cri Boratenski</a></u></font><font style="font-size:16px" color="#000000" face="Arial"><br>
      <br>
      One of the questions we often receive early on the relationship with our clients is, "who do I need to connect to in order to send text messages to my consumers and what happens to messages once they leave my platform"?&nbsp; To answer this question Cri will define the roles of each member of the mobile value chain and look at how messages flow between the parties in various scenarios.&nbsp; Cri will also discuss how billing works for standard rated and premium messages, discuss some of the terminology of the mobile industry, look at available API types and dip into some of the different ways to connect to your vendor partners.&nbsp; Listen in on the webcast and hear Cri address your pressing questions.</font></div>
      <div id="bv_Shape4" style="position:absolute;left:837px;top:179px;widt h:13px;height:844px;z-index:22;" align="center">
      <img src="images/bv01015.gif" id="Shape4" align="top" alt="" title="" border="0" width="13" height="844"></div>
      <div id="bv_Shape5" style="position:absolute;left:26px;top:179px;width :14px;height:844px;z-index:23;" align="center">
      <img src="images/bv01016.gif" id="Shape5" align="top" alt="" title="" border="0" width="14" height="844"></div>
      <div id="bv_Image2" style="overflow:hidden;position:absolute;left:26px ;top:15px;z-index:24" align="left">
      <img src="images/Mobile Compass Web Banner 2.jpg" id="Image2" alt="" align="top" border="0" style="width:824px;height:128px;"></div>
      <div id="bv_Text2" style="position:absolute;left:62px;top:215px;width :411px;height:27px;z-index:25;" align="left">
      <font style="font-size:24px" color="#000000" face="Arial">FEBRUARY '09 WEBCAST REPLAY</font></div>
      <div id="bv_Shape1" style="position:absolute;left:26px;top:984px;width :824px;height:39px;z-index:26;" align="center">
      <img src="images/bv01007.gif" id="Shape1" align="top" alt="" title="" border="0" width="824" height="39"></div>
      <div id="bv_Text5" style="position:absolute;left:341px;top:986px;widt h:235px;height:32px;z-index:27;" align="center">
      <font style="font-size:13px" color="#000000" face="Arial">Copyright 2009 Mobile Compass LLC, All rights reserved</font></div>
      <div id="bv_Text6" style="position:absolute;left:473px;top:283px;widt h:331px;height:201px;z-index:28;" align="left">
      <font style="font-size:16px" color="#666666" face="Arial"><b>Specific areas covered:</b><br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> How is the value chain structured? <br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> How does my product fit into the value chain?<br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> What are my commercial, technical and billing options?<br>
      <b><br>
      Who Should Attend:</b><br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> Marketing and Product Managers<br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> Mobile Content Providers<br>
      </font><font style="font-size:13px" color="#666666" face="Symbol">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#183;</font><font style="font-size:16px" color="#666666" face="Arial"> Mobile Application Developers</font></div>
      <div id="bv_Shape3" style="position:absolute;left:458px;top:533px;widt h:356px;height:335px;z-index:29;" align="center">
      <img src="images/bv01024.gif" id="Shape3" align="top" alt="" title="" border="0" width="356" height="335"></div>
      <div id="bv_Text12" style="position:absolute;left:543px;top:547px;widt h:201px;height:22px;z-index:30;" align="left">
      <font style="font-size:19px" color="#000000" face="Arial">Webcast Registration</font></div>
      <div id="bv_Text13" style="position:absolute;left:503px;top:579px;widt h:283px;height:55px;z-index:31;" align="left">
      <font style="font-size:16px" color="#000000" face="Arial">Please provide the information below to receive your FREE February Webcast: <i>Understanding the Mobile Value Chain</i></font></div>
      <div id="bv_Shape6" style="position:absolute;left:87px;top:629px;width :324px;height:239px;z-index:32;" align="center">
      <a href="http://www.mobilecompassinc.com/Future_Webinars.php"><img src="images/bv01025.gif" id="Shape6" align="top" alt="" title="" border="0" width="324" height="239"></a></div>
      <div id="bv_Text16" style="position:absolute;left:101px;top:636px;widt h:287px;height:38px;z-index:33;" align="center">
      <font style="font-size:16px" color="#8B0000" face="Arial"><b>Sign Up for Email Alerts on Future Webinars.</b></font></div>
      <div id="bv_Image1" style="overflow:hidden;position:absolute;left:135p x;top:676px;z-index:34" align="left">
      <a href="http://www.mobilecompassinc.com/Future_Webinars.php"><img src="images/Webinar.jpg" id="Image1" alt="" align="top" border="0" style="width:208px;height:175px;"></a></div>
      <div id="bv_Form1" style="position:absolute;left:481px;top:637px;widt h:318px;height:231px;z-index:35;" align="left">
      <form name="Webcast" method="POST" action="<? echo($_SERVER['PHP_SELF']);?>" id="Form1" onsubmit="return ValidateWebcast(this)">
      <div id="bv_Text11" style="position:absolute;left:10px;top:15px;width: 78px;height:16px;z-index:0;" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">Webcast</font></div>
      <input type="text" id="Editbox4" style="position:absolute;left:98px;top:15px;width: 200px;font-family:Courier New;font-size:9.3px;z-index:1" name="Webcast" value="Understanding the Mobile Value Chain">
      <div id="bv_Text17" style="position:absolute;left:10px;top:40px;width: 78px;height:16px;z-index:2;" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">*First Name:</font></div>
      <input type="text" id="Editbox5" style="position:absolute;left:98px;top:40px;width: 200px;font-family:Courier New;font-size:16px;z-index:3" name="firstname" value="">
      <div id="bv_Text18" style="position:absolute;left:10px;top:69px;width: 78px;height:16px;z-index:4;" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">*Last Name</font></div>
      <input type="text" id="Editbox6" style="position:absolute;left:98px;top:69px;width: 200px;font-family:Courier New;font-size:16px;z-index:5" name="lastname" value="">
      <div id="bv_Text19" style="position:absolute;left:10px;top:98px;width: 78px;height:16px;z-index:6;" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">*Phone:</font></div>
      <input type="text" id="Editbox9" style="position:absolute;left:98px;top:98px;width: 200px;font-family:Courier New;font-size:16px;z-index:7" name="phone" value="">
      <div id="bv_Text20" style="position:absolute;left:10px;top:127px;width :78px;height:16px;z-index:8;" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">*Email:</font></div>
      <input type="text" id="Editbox10" style="position:absolute;left:98px;top:127px;width :200px;font-family:Courier New;font-size:16px;z-index:9" name="email" value="">
      <input type="submit" id="Button3" name="Button3" value="Send" style="position:absolute;left:98px;top:156px;width :96px;height:25px;font-family:Arial;font-size:13px;z-index:10">
      <input type="reset" id="Button4" name="Button4" value="Reset" style="position:absolute;left:98px;top:186px;width :96px;height:25px;font-family:Arial;font-size:13px;z-index:11">
      </form>
      </div>
      </div>
      </body>
      </html>

      Comment

      • mattski
        First Sergeant

        • Jan 2008
        • 78

        #4
        Re: Parse error: syntax error, unexpected T_LNUMBER

        Aside from not having the images (which is expected) this page displays correctly with no errors.

        What I need to see is the March_Events.php and February_Events.php source in order to help find your issue.
        Mattski

        http://www.ScorpioFire.com


        Comment

        • cboratenski
          Sergeant

          • Sep 2009
          • 23

          #5
          Re: Parse error: syntax error, unexpected T_LNUMBER

          How do I obtain the source?

          Thanks,
          Cri

          Comment

          • mattski
            First Sergeant

            • Jan 2008
            • 78

            #6
            Re: Parse error: syntax error, unexpected T_LNUMBER

            Copy and paste the information from the files you were editing that caused the issue.
            Mattski

            http://www.ScorpioFire.com


            Comment

            • cboratenski
              Sergeant

              • Sep 2009
              • 23

              #7
              Re: Parse error: syntax error, unexpected T_LNUMBER

              The form was created with the Form Wizard and all of my changes were done by editing the form properties. Here are the settings:

              Form Name: Webcast
              Action: <?echo($_SERVER['PHP_SELF']);?>
              Method: POST
              Encoding Type: application/x-www-form-urlencoded (I have also tried multipart/form data)
              Use build in PHP form processor to send data to an email address (Checked)
              Email address: infoATstartupmobile.com
              Subject: Contact Information
              Message: February '09 Webcast Registration
              Success URL: Success.php
              Error URL: Contact_Us_Error.php
              Write form data to a .csv file: (not checked)

              Comment

              • navaldesign
                General & Forum Moderator

                • Oct 2005
                • 12080

                #8
                Re: Parse error: syntax error, unexpected T_LNUMBER

                Try removing the quote ' from "February '09" or add a backslash: February \'09 (it will be stripped off during processing) though this shouldn't be the issue.

                Please post the code, the settings are not enough to see the issue.

                Since BV strips off the PHP code in preview, you need to download the file from your site, and open it with Notepad to see the code.
                Navaldesign
                Logger Lite: Low Cost, Customizable, multifeatured Login script
                Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
                DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
                Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

                Comment

                • cboratenski
                  Sergeant

                  • Sep 2009
                  • 23

                  #9
                  Re: Parse error: syntax error, unexpected T_LNUMBER

                  navaldesign, you are a fricken genius. I removed the quote and it worked perfectly. Thanks so much, I never would have figured that out.

                  Comment

                  Working...
                  X