Parse error in OCCI header, sol8 & gcc 2.95.2

All I did was include occi.h, and set the namespaces:
#include <occi.h>
using namespace oracle::occi;
using namespace std;
... no other OCCI code
error is:
In file included from .../occi.h:48
..../occiObjects.h: in method 'oracle::occi::Ref<T>::operator
oracle::occi::RefAny() const':
occiObjects.h:509: parse error before ';'
etc.
Any help would be appreciated. Should I upgrade to gcc 3?
jds

Hi,
You need Sun's compiler workshop for using OCCI. The name
mangling for gcc and CC is not the same.
rahul

Similar Messages

  • Errors in OCCI header files

    Hi,
    I have a C++ source code. Today I added *#include "occi.h"* to my code and during compilation I get following error messages:g++ -I../include -I/usr/include -I/usr/include/freetype2 -I/u01/app/oracle/product/11.2.0/xe/rdbms/public  -lglut -lGLU -lGL -L/usr/local/lib -lfreetype -L../linux -lftgl g.cpp
    In file included from /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiData.h:107,
                     from /u01/app/oracle/product/11.2.0/xe/rdbms/public/occi.h:43,
                     from g.cpp:15:
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:986: error: expected identifier before ‘int’
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:987: error: expected unqualified-id before ‘{’ token
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1257: error: expected identifier before ‘int’
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1258: error: expected unqualified-id before ‘{’ token
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1387: error: expected identifier before ‘int’
    /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1387: error: expected unqualified-id before ‘{’ token
    make: *** [g.o] Error 1Am I doing something wrong? Please help...

    This forum is about general programming in C, C++ and Fortran, and about details of using the Solaris Studio suite of compilers and programming tools.
    Questions about Oracle database programming are more likely to get an answer in a database programming forum. A list of forums is here:
    https://forums.oracle.com/forums/category.jspa?categoryID=18

  • Error: parse error before '.' & number of arguments doesn't match

    Compiling my simple source code reports error error: parse error before '.' . But in fact there is not any "." token on this line.
    At my guess it has something to do with JNI C macros but I really have no idea how to find that bug
    // ##net_java_dev_jssm_MulticastSSM.h: line 55
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *, jobject, jstring, jstring);
    // ##net_java_dev_jssm_MulticastSSM.c: line 306
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *env, jobject obj, jstring s_addr, jstring g_addr) {
    // no code yet
    mingw32-gcc.exe -DWIN32 -Wall -c -IC:\java\JNI_headerFiles\jdk1.6.0/include -IC:\java\JNI_headerFiles\jdk1.6.0/include/win32 -shared src_c/net_java_dev_jssm_MulticastSSM.c -DNODEBUG
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: parse error before '.' token
    src_c/net_java_dev_jssm_MulticastSSM.c: In function `Java_net_java_dev_jssm_MulticastSSM_join2':
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: number of arguments doesn't match prototype
    src_c/net_java_dev_jssm_MulticastSSM.h:56: error: prototype declaration
    make: *** [all] Error 1
    C compiler: mingw32-gcc.exe
    JNI: jdk1.6.0
    Any help would be really appreciated.

    Hi radone,
    I just read your posting and suddently got an idea why your compiler was complaining about the period. In most C environment, there is a definition
    #define s_addr S_un.S_addr
    in some socket-related header file! Now you know where the dot is coming from.

  • Weird Parsing Error in Safari 5.0

    I've just updated my web browser to Safari 5.0 and I'm in a "Introduction to JavaScript" class. I'm trying to do a lab which:
    1). Creates a website that includes: - Your name (First and Last)
    2). Sets up a unordered list with Three links to your favorite websites
    The problem is that though my code works in Firefox, I keep getting a Syntax Error: Parse Error at line 15 (Where the document.write statement outputs a unordered list of "a href" url links). I'm at wits end and the syntax seems fine. Does anyone have any suggestions? Oh, by the way here's my code for the lab:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Lab1</title>
    <script type="text/javascript">
    //Prompts for my name
    var userName = prompt("Please enter your name");
    document.write (userName);
    //displays my picture and my favorites places in HTML
    document.write("<br />");
    document.write("<img src='mygradpic.jpg'/>");
    document.write("<br />");
    document.write("My Favorite Places");
    document.write(<ul>
    <li><a href="http://www.seattle.gov/parks/park_detail.asp?ID=307">Greenlake Park in Seattle,WA</a></li>
    <li><a href="http://www.cinerama.com/TemplateHome.aspx?contentId=1">Cinerama Theatre in Downtown Seattle</a></li>
    <li><a href="http://www.spl.org/">The Seattle Public Library</a></li>
    </ul>);
    </script>
    </head>
    <body>
    </body>
    </html>

    This is a syntax error:
    document.write(
    Greenlake Park in Seattle,WA
    Cinerama Theatre in Downtown Seattle
    The Seattle Public Library
    ... because the argument isn't a string. That should be:
    document.write('
    Greenlake Park in Seattle,WA
    Cinerama Theatre in Downtown Seattle
    The Seattle Public Library
    ... note that the argument is enclosed in single-quotes an the carriage returns are removed. That said, your intro to JavaScript class should teach you that document.write() is poor form.

  • Parser error in ABAP mapping

    Hi ,
      i am using the following ABAP mapping program
    method if_mapping~execute .
    data: t_edidc type table of edi_dc40,
    ls_edidc type edi_dc40,
    ls_edidc_h type edi_dc40,
    t_edidd type table of edi_dd40,
    ls_edidd_h type edi_dd40,
    ls_idx_xmb type idx_xmb,
    t_result type string,
    t_resultc type string,
    t_resultd type string.
    data: ls_idx1 type idxporsm59.
    data: t_segtyp type table of edilsegtyp,
    el_segtyp type edilsegtyp,
    el_released type segdefrel,
    el_error_text type string.
    =======================
    0. parse input document
    =======================
    initialize iXML
    type-pools: ixml.
    break-point.
    class cl_ixml definition load.
    create main factory
    data: ixmlfactory type ref to if_ixml.
    break-point.
    ixmlfactory = cl_ixml=>create( ).
    create stream factory
    data: streamfactory type ref to if_ixml_stream_factory.
    streamfactory = ixmlfactory->create_stream_factory( ).
    create input stream
    data: istream type ref to if_ixml_istream.
    istream = streamfactory->create_istream_xstring( source ).
    initialize input document
    data: idocument type ref to if_ixml_document.
    idocument = ixmlfactory->create_document( ).
    parse input document
    data: iparser type ref to if_ixml_parser.
    iparser = ixmlfactory->create_parser( stream_factory = streamfactory
    istream = istream
    document = idocument ).
    iparser->parse( ).
    =================================================
    1. get IDoc header data and connection parameters
    =================================================
    data: el_message_id type sxmsguid.
    el_message_id = param->get( if_mapping_param=>message_id ).
    data: el_element type ref to if_ixml_element.
    el_element = idocument->find_from_name( 'TABNAM' ).
    ls_edidc-tabnam = el_element->get_value( ).
    el_element = idocument->find_from_name( 'MANDT' ).
    ls_edidc-mandt = el_element->get_value( ).
    el_element = idocument->find_from_name( 'DOCNUM' ).
    ls_edidc-docnum = el_element->get_value( ).
    el_element = idocument->find_from_name( 'STATUS' ).
    ls_edidc-status = el_element->get_value( ).
    el_element = idocument->find_from_name( 'OUTMOD' ).
    ls_edidc-outmod = el_element->get_value( ).
    el_element = idocument->find_from_name( 'TEST' ).
    if not el_element is initial.
    ls_edidc-test = el_element->get_value( ).
    endif.
    el_element = idocument->find_from_name( 'IDOCTYP' ).
    ls_edidc-idoctyp = el_element->get_value( ).
    el_element = idocument->find_from_name( 'CIMTYP' ).
    if not el_element is initial.
    ls_edidc-cimtyp = el_element->get_value( ).
    endif.
    el_element = idocument->find_from_name( 'MESTYP' ).
    ls_edidc-mestyp = el_element->get_value( ).
    el_element = idocument->find_from_name( 'STDVRS' ).
    if not el_element is initial.
    ls_edidc-stdvrs = el_element->get_value( ).
    endif.
    el_element = idocument->find_from_name( 'STD' ).
    if not el_element is initial.
    ls_edidc-std = el_element->get_value( ).
    endif.
    el_element = idocument->find_from_name( 'STDMES' ).
    ls_edidc-stdmes = el_element->get_value( ).
    el_element = idocument->find_from_name( 'SNDPOR' ).
    ls_edidc-sndpor = el_element->get_value( ).
    el_element = idocument->find_from_name( 'SNDPRT' ).
    ls_edidc-sndprt = el_element->get_value( ).
    el_element = idocument->find_from_name( 'SNDPRN' ).
    ls_edidc-sndprn = el_element->get_value( ).
    el_element = idocument->find_from_name( 'RCVPOR' ).
    ls_edidc-rcvpor = el_element->get_value( ).
    el_element = idocument->find_from_name( 'RCVPRT' ).
    ls_edidc-rcvprt = el_element->get_value( ).
    el_element = idocument->find_from_name( 'RCVPRN' ).
    ls_edidc-rcvprn = el_element->get_value( ).
    el_element = idocument->find_from_name( 'CREDAT' ).
    ls_edidc-credat = el_element->get_value( ).
    el_element = idocument->find_from_name( 'CRETIM' ).
    ls_edidc-cretim = el_element->get_value( ).
    el_element = idocument->find_from_name( 'SERIAL' ).
    ls_edidc-serial = el_element->get_value( ).
    ls_edidc-direct = '2'.
    move-corresponding ls_edidc to ls_idx_xmb.
    Connection data to application system to get IDoc metadata
    select single * from idxporsm59 into ls_idx1
    where port = ls_edidc-sndpor
    and client = ls_edidc-mandt.
    ls_idx_xmb-port = ls_edidc-sndpor.
    ls_idx_xmb-rfcdest = 'NONE'. "not necessary
    Get DOCREL and SAPREL
    el_element = idocument->find_from_name( 'DOCREL' ).
    if not el_element is initial.
    ls_edidc-docrel = el_element->get_value( ).
    else.
    select segtyp into table t_segtyp from idxidocsyn
    where port = ls_edidc-sndpor
    and idoctyp = ls_edidc-idoctyp
    and cimtyp = ls_edidc-cimtyp.
    loop at t_segtyp into el_segtyp.
    select released into el_released from idxedisdef
    where port = ls_edidc-sndpor
    and segtyp = el_segtyp
    and actrelease = 'X'.
    endselect.
    if el_released gt ls_edidc-docrel.
    ls_edidc-docrel = el_released.
    endif.
    endloop.
    endif.
    ======================================
    2. convert XML to IDoc table structure
    ======================================
    break-point.
    call function 'IDX_XML_TO_IDOC'
    exporting
    xml_data = source
    guid = el_message_id
    edidc40 = ls_edidc
    idx_xmb = ls_idx_xmb
    typ_def = 'X'
    tables
    idoc_control_40 = t_edidc
    idoc_data_40 = t_edidd
    exceptions
    unknown_xml = 1
    customizing_error = 2
    no_data_found = 3
    syntax_error = 4
    others = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    To keep the original DOCNUM uncomment the following 8 lines of coding
    Otherwise a new DOCNUM will be created
    LOOP AT t_edidc into ls_edidc_h.
    ls_edidc_h-DOCNUM = ls_edidc-DOCNUM.
    modify t_edidc from ls_edidc_h.
    ENDLOOP.
    LOOP AT t_edidd into ls_edidd_h.
    ls_edidd_h-DOCNUM = ls_edidc-DOCNUM.
    modify t_edidd from ls_edidd_h.
    ENDLOOP.
    =========================================
    3. convert IDoc table structure to string
    =========================================
    call function 'ZSOTR_SERV_TABLE_TO_STRING'
    EXPORTING
    FLAG_NO_LINE_BREAKS = ' '
    LINE_LENGTH = 0
    LANGU = SY-LANGU
    importing
    text = t_resultc
    tables
    text_tab = t_edidc.
    convert IDoc table structure to string
    call function 'ZSOTR_SERV_TABLE_TO_STRING'
    EXPORTING
    FLAG_NO_LINE_BREAKS = ' '
    LINE_LENGTH = 0
    LANGU = SY-LANGU
    importing
    text = t_resultd
    tables
    text_tab = t_edidd.
    concatenate t_resultc t_resultd into t_result.
    convert string to xstring
    call function 'SCMS_STRING_TO_XSTRING'
    exporting
    text = t_result
    MIMETYPE = ' '
    ENCODING =
    importing
    buffer = result.
    EXCEPTIONS
    FAILED = 1
    OTHERS = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endmethod.
    <b> i am getting the following parse error in FM IDX_XML_TO_IDOC :
    " unexpected symbol; expected '<', '</', entity reference, character data, CDATA section, processing instruction or comment "
    can anybody help
    points will be given
    Regards</b>

    HI,
    is it possible that you have to use "-" instead of "=" in this [ixmlfactory = cl_ixml=>create( ).] line ?
    regards,
    gordon

  • Parse error when trying to use form

    When i load the PHP,form page and thank you page im getting this error when i hit send.
    No email is sent from form.
    Parse error: syntax error, unexpected T_STRING in /home/owendaws/public_html/owendawsonpga/contactformprocess_original_db.php on line 38
    PHP page
    <?
    $fname = $HTTP_POST_VARS['textfield'];
    $lname = $HTTP_POST_VARS['textfield2'];
    $phone = $HTTP_POST_VARS['textfield3'];
    $email = $HTTP_POST_VARS['textfield4'];
    $address = $HTTP_POST_VARS['textfield5'];
    $state = $HTTP_POST_VARS['textfield6'];
    $zip = $HTTP_POST_VARS['textfield7'];
    $find = $HTTP_POST_VARS['select'];
    $goals = $HTTP_POST_VARS['select2'];
    $practice = $HTTP_POST_VARS['select3'];
    $learn = $HTTP_POST_VARS['select4'];
    $handicap = $HTTP_POST_VARS['select5'];
    $timeplaying = $HTTP_POST_VARS['select6'];
    $lesson = $HTTP_POST_VARS['select7'];
    $additional = $HTTP_POST_VARS['textfield8'];
    mail('[email protected]','Owen Dawson PGA Contact Form Submission',"First Name: $fname\nLast Name: $lname\nPhone Number: $phone\nEmail: $email\nAddress: $address\nState: $state\nZip Code: $zip\nHow did you find me? $find\nWhat are your goals? $goals\nHow much can you practice? $practice\nWhat would you like to learn? $learn\nWhat is your handicap? $handicap\nHow long have you been playing golf? $timeplaying\nHave you ever taken a lesson? $lesson\nAdditional Information: $additional\n",'From: [email protected]');
    header("Location: http://www.owendawsonpga.com/thankyouform.html");
    ?>
    form page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/PGATEMPLATE3.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Golf Lessons in Baltimore Owen Dawson PGA, GOLF INSTRUCTION IN MARYLAND, GOLF LESSONS IN BALTIMORE</title>
    <meta name="Keywords" content="GOLF INSTRUCTION, GOLF LESSONS IN BALTIMORE, BALTIMORE, MARYLAND, GOLF INSTRUCTION BALTIMORE,SHORT GAME,BUNKER PLAY" />
    <meta name="Description" content="Golf Instruction in Baltimore Maryland" />
    <!-- InstanceEndEditable -->
    <link href="twoColFixRtHdr.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixRtHdr #sidebar1 { width: 220px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {
        font-size: small
    .style2 {
        font-family: "Comic Sans MS", Papyrus;
        font-size: small;
    .style6 {font-size: smaller; font-family: "Comic Sans MS", Papyrus; }
    .style7 {font-family: "Comic Sans MS", Papyrus}
    .style8 {
        color: #0000FF;
        font-family: Georgia, "Times New Roman", Times, serif;
    a:link {
        text-decoration: none;
        color: #000000;
        background-color: #EBEBEB;
    a:visited {
        text-decoration: none;
        color: #000000;
    a:hover {
        text-decoration: none;
        border-top-style: none;
        border-right-style: none;
        border-bottom-style: none;
        border-left-style: none;
        border-top-color: #001EF1;
        border-right-color: #001EF1;
        border-bottom-color: #001EF1;
        border-left-color: #001EF1;
        color: #000000;
        background-color: #EBEBEB;
    a:active {
        text-decoration: none;
    .style9 {font-family: Georgia, "Times New Roman", Times, serif}
    .style10 {font-family: Georgia, "Times New Roman", Times, serif; font-size: small; }
    .style11 {color: #000000}
    .style12 {
        font-family: Georgia, "Times New Roman", Times, serif;
        color: #FF0000;
        font-weight: bold;
    .style13 {color: #FF0000}
    -->
    </style>
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    function submitForm(){
        var myform = document.getElementById('form1');
        var fname = document.getElementById('textfield');
        var lname = document.getElementById('textfield2');
        var phone = document.getElementById('textfield3');
        if (fname.value == ''){
            alert('First name is a required field.  Please enter your first name to continue.');
            fname.focus();
            return false;
        if (lname.value == ''){
            alert('Last name is a required field.  Please enter your last name to continue.');
            fname.focus();
            return false;
        if (phone.value == ''){
            alert('Phone number is a required field.  Please enter your preferred phone number to continue.');
            fname.focus();
            return false;
        myform.submit();
    function messageSent(){
        var status = document.getElementById('msg');
        status.innerHTML = 'Message sent successfully.';
    </script>
    <!-- InstanceEndEditable -->
    </head>
    <body class="twoColFixRtHdr">
    <div id="container">
      <div id="header">
        <h1><img src="photos/newpgabannerfinal3_2_10.png" width="739" height="210" /></h1>
        <!-- InstanceBeginEditable name="EditRegion4" -->
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="V1Login.html" class="style1">V1 Student Videos</a></li>
          <li><a href="Private_Lessons.html" class="style1">Private Lessons</a></li>
          <li><a href="Clinics.html" class="style1">Clinics</a></li>
          <li><a href="Gift_Certificates.html" class="style1">Gift Certificates</a></li>
          <li><a href="Instructional_Video.html" class="style1">Instructional Video</a></li>
          <li><a href="mailto:[email protected]" class="style1">Contact Owen</a></li>
        </ul>
        <!-- InstanceEndEditable -->
        <p align="center"> </p>
      <!-- end #header --></div>
      <div id="sidebar1">
        <p class="style12"><a href="newfor2010.html" class="style13">New V1 Swing Analysis Software for 2010</a></p>
        <p class="style7"><a href="contactformprocess_original_db.html">Instructional Form </a></p>
        <p class="style7"><span class="style9"><span class="style9"><a href="Sample_Lesson.html">Sample Lesson</a></span></span></p>
        <p class="style9"><a href="http://www.youtube.com/user/owenpga" target="_blank">Video tutorials</a></p>
        <p class="style9"><a href="http://owendawsonpga.blogspot.com" target="_blank">Instructional Blog</a></p>
        <p class="style7 style8"><a href="PGAPHOTOGALLERY/index.html" target="_blank" class="style9">Photo Gallery</a></p>
        <p class="style7 style8 style11"><a href="Instructional_Video.html">Intructional Video</a></p>
        <p class="style7 style8"> </p>
        <p class="style10">Testimonials</p>
        <p class="style6 style9">“I have been working with Owen Dawson for the past 7 years. During that time my swing has dramatically changed and improved. This has happened through Owen's drills and use of video. It is because of these techniques, that I understand how to hit good shots but just as importantly why I hit a shot poorly. I’m glad I’ve had the opportunity to work with Owen and would highly recommend him. ” <strong>Sam Young - Country Club of Maryland - 2009 Men's Club Champion </strong></p>
        <p class="style2">.............................................</p>
        <p class="style6 style9">“Owen does two things  particularly well, in my opinion.  First, he is a master of recording  technology, and it really helps me to see what I need correcting, and what the  new move needs to be.  Second, Owen knows what the best next step should be  in your own journey to a better swing.  I have taken one or two lessons  from Owen each year for the last three or four years – one relatively small  step at a time, and then worked on grooving that step.  In that period, my  index has dropped about 8 strokes, and in 2007 I won the Club’s “Most Improved  Player” award.  Kudos to Owen!”</p>
        <p class="style6 style9"><strong>Bill Smillie -CCofMD</strong></p>
        <h3 class="style2"><a href="Testimonials.html">Read other testimonials  </a></h3>
        <!-- end #sidebar1 -->
      </div>
      <!-- InstanceBeginEditable name="MAINCONTENT" -->
      <div id="mainContent">
          <form action="contactformprocess_original_db.php" method="post" enctype="multipart/form-data" name="form1" id="form1" target="ifr">
          <p class="style5">Name</p>
          <p>
            <label for="textfield"><span class="style5">First</span></label>
            <input type="text" name="textfield" id="textfield" />
            </p>
          <p>
            <label for="textfield2"><span class="style5">Last</span></label>
            <input type="text" name="textfield2" id="textfield2" />
          </p>
          <p><span class="style5">Phone number
              <label>
              <input type="text" name="textfield3" id="textfield3" />
              </label>
          </span></p>
          <p><span class="style5">Email</span>
            <label>
            <input type="text" name="textfield4" id="textfield4" />
            </label>
          </p>
          <p><span class="style5">Address
              <label>
              <input type="text" name="textfield5" id="textfield5" />
              </label>
          </span></p>
          <p><span class="style5">State</span>
            <label>
            <input type="text" name="textfield6" id="textfield6" />
            </label>
          </p>
          <p><span class="style5">Zip Code</span>
            <label>
            <input type="text" name="textfield7" id="textfield7" />
            </label>
          </p>
          <p><span class="style5">How did you find me?</span>
            <label for="select"></label>
            <select name="select" id="select">
              <option value="internet">Internet Search</option>
              <option value="friend referral">Friend Referral</option>
              <option value="ccmdsite">Country Club of MD website</option>
              <option value="other">Other</option>
            </select>
          </p>
          <p><span class="style5">What are your golfing goals?</span>            
            <select name="select2" id="select2">
              <option value="break 100">Break 100</option>
              <option value="break 90">Break 90</option>
              <option value="break 80">Break 80</option>
              <option value="stop slice">Stop Slicing the Ball</option>
              <option value="stop hook">Stop Hooking the Ball</option>
              <option value="Compete">Compete in local tournaments</option>
              <option value="More Consistant">Hit more consistant shots</option>
            </select>
          </p>
          <p><span class="style5">How much can you practice?</span>
            <label for="select3"></label>
            <select name="select3" id="select3">
              <option value="1 hour">1 hour</option>
              <option value="2 hours">2 hours</option>
              <option value="3 hours">3 hours </option>
              <option value="> 3 hours">More than 3 hours a week</option>
            </select>
          </p>
          <p><span class="style5">What would you like to learn?</span>
            <label for="select4"></label>
            <select name="select4" id="select4">
              <option value="full swing">Full Swing Mechanics Irons</option>
              <option value="driver swing">Full Swing Mechanics Driver</option>
              <option value="short pitches">Short Pitch Shots inside of 50 yards</option>
              <option value="bunker play">Bunker Play</option>
              <option value="chipping">Chipping</option>
              <option value="short shots">Short shots from rough</option>
            </select>
          </p>
          <p class="style5">What is your Handicap?<label for="select5"></label>
            <select name="select5" id="select5">
              <option value="scratch to 5">Scratch - 5 HDCP</option>
              <option value="6 to 10">6 - 10 HDCP</option>
              <option value="11 to 15">11 - 15 HDCP</option>
              <option value="15 to 20">15 - 20 HDCP</option>
              <option value="> 21">21 and Higher</option>
            </select>
          </p>
          <p class="style5">How long have you been playing?
            <label for="select6"></label>
            <select name="select6" id="select6">
              <option value="beginner">Beginner</option>
              <option value="2 to 5 years">2-5 yrs</option>
              <option value="6 to 10 years">6-10 yrs</option>
              <option value="11 to 15 years">11-15yrs</option>
              <option value="> 15 years">More than 15 years</option>
            </select>
          </p>
          <p class="style5">Have you ever had a lesson?
            <label for="select7"></label>
            <select name="select7" id="select7">
              <option value="yes">YES</option>
              <option value="no">NO</option>
            </select>
          </p>
          <p class="style5">Additional Information
            <label>
            <textarea name="textfield8" cols="40" id="textfield8"></textarea>
            </label>
          </p>
          <p class="style5">
            <label for="button"></label>
            <input type="submit" name="Submit" id="button" value="Submit"onclick="submitForm()" />
          </p>
          <p class="style5"> </p>
            <div id="msg" style="font: bold 12px arial"></div>
        </form>
        <p align="center" class="style8"><br />
        </p>
        <p class="style8"> </p>
        <p class="style8"> </p>
        <p class="style8 style12"><strong><br />
         </strong></p>
        <p align="left"> </p>
        <h1> </h1>
        <!-- end #mainContent -->
        </div>
      <!-- InstanceEndEditable -->
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <br class="clearfloat" />
      <div id="footer">
        <p align="center"><a href="http://www.v1golf.com" target="_blank"><img src="photos/GAW.png" width="163" height="60" hspace="20" border="0" /><img src="photos/logo.png" width="80" height="76" hspace="40" border="0" /></a><a href="http://www.owendawsonphotography.com" target="_blank"><img src="photos/ody.png" width="199" height="59" border="0" /></a></p>
        <h2 align="center" class="style6">©Owen Dawson P.G.A. ™ All rights reserved</h2>
        <!-- end #footer -->
      </div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    thank you page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    Thank you for fill out my lesson form. I will be in touch with you shortly. Owen
    </body>
    </html>

    Your PHP script is not secured at all. I would recommend using Forms To Go (http://www.bebosoft.com/products/formstogo/overview) to create the PHP script.
    The unregistered version can be used for free. It will get you up and running in no time.
    In your HTML form,remove enctype="multipart/form-data" from this:
    <form action="contactformprocess_original_db.php" method="post" enctype="multipart/form-data" name="form1" id="form1" target="ifr">
    enctype="multipart/form-data" is only required if you have a file upload field in the form.

  • Urgent help needed please, with parse error message

    Hi. I've got a page which comes at the end of a 3 page sequence - search, results, detail. The detail page had been working fine, but yesterday I added a second recordset to the page, to pull reviews from a separate table, and now I'm getting the following error:
    Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /Applications/MAMP/htdocs/goodvetguide/practice_Detail.php on line 78
    (should point out that I'm using DMW8 on a Mac and testing locally using MAMP as my testing server).
    line 78 is:
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    and the full code for the page is posted below. I've googled this error and found a variety of different reasons for why this might be happening but none of the examples I've seen appear to apply to my case, so I'd really appreciate any assistance anyone can offer with this. Thanks in advance.
    Page code:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?><?php
    if (!session_id()) session_start();
    ?>
    <?php
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    $query_WADApracticelist = sprintf("SELECT practice_id, practicename, address1, address2, address3, address4, postcode, location, practicewebsite, practicetype, starrating FROM practicelist WHERE practice_id = %s OR ( -1= %s AND practice_id= %s)", GetSQLValueString($Parampractice_id_WADApracticelist, ""),GetSQLValueString($Parampractice_id2_WADApracticelist, ""),GetSQLValueString($ParamSessionpractice_id_WADApracticelist, ""));
    $WADApracticelist = mysql_query($query_WADApracticelist, $connGVG) or die(mysql_error());
    $row_WADApracticelist = mysql_fetch_assoc($WADApracticelist);
    $totalRows_WADApracticelist = mysql_num_rows($WADApracticelist);
    $colname_rsReviews = "-1";
    if (isset($_GET['WADALocation'])) {
      $colname_rsReviews = (get_magic_quotes_gpc()) ? $_GET['WADALocation'] : addslashes($_GET['WADALocation']);
    mysql_select_db($database_connGVG, $connGVG);
    $query_rsReviews = sprintf("SELECT * FROM reviews WHERE practice_id = %s", GetSQLValueString($colname_rsReviews, "int"));
    $rsReviews = mysql_query($query_rsReviews, $connGVG) or die(mysql_error());
    $row_rsReviews = mysql_fetch_assoc($rsReviews);
    $totalRows_rsReviews = mysql_num_rows($rsReviews);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Details practicelist</title>
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* Details page CSS */
    .WADADetailsContainer {
    font-size: 11px;
    #WADADetails {
    padding-top: 10px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
      <div id="content">
        <div id="menu">
          <a href="addreview.html">Add review</a>  <a href="contact.html">Contact</a>  <a href="terms.html">Terms</a>  <a href="practice_Search.php">Search</a>  <a href="about.html">About </a><a href="index.html">Home </a></div>
        <div id="contentleft2">
          <div id="greenpiccont"></div>
          <div id="cright">
            <div class="boldwhite" id="rightblue">Review your vet<br />
              <br />
              <span class="smallbold">Tell us your experience</span><br />
              <br />
              <span class="smallwhite">Give people information<br />
              on your experiences so <br />
              that they can make an<br />
              informed decision.</span><br />
              <div id="startbutton"><a href="#">Start</a></div>
            </div>
          <div id="bluemap2"></div>
          <div id="searchbox">
            <table width="202" border="0" cellspacing="0">
              <tr>
                <th scope="row"><div align="left" class="smalltext">Search by postcode</div></th>
              </tr>
              <tr>
                <th height="31" scope="row"><input name="Name" class="Width250px" /></th>
              </tr>
              <tr>
                <th scope="row"><div align="left" class="smalltext">Miles</div></th>
              </tr>
              <tr>
                <th height="39" scope="row"><div align="left">
                  <input name="Name2" class="Width250px" />
                </div></th>
              </tr>
            </table>
          </div>
          </div>
          <div class="about10" id="contl">Practice details<br />
            <div class="WADADetailsContainer"> <a name="top"></a>
              <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
              <?php if ($totalRows_WADApracticelist > 0) { // Show if recordset not empty ?>
                <div id="WADADetails">
                  <table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                      <th class="WADADataTableHeader">Practice name:</th>
                      <td class="WADADataTableCell"><strong><?php echo($row_WADApracticelist['practicename']); ?></strong></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Practice type:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['practicetype']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Address:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address1']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address2']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address3']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address4']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Postcode:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['postcode']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Location:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['location']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Website:</th>
                      <td class="WADADataTableCell"><a href="http://www.<?php echo $row_WADApracticelist['practicewebsite']; ?>" target="_blank"><?php echo($row_WADApracticelist['practicewebsite']); ?></a></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Star rating:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['starrating']); ?></td>
                    </tr>
                  </table>
                  <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                  <div class="WADAButtonRow">
                    <table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="practice_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></td>
                      </tr>
                    </table>
                  </div>
                </div>
              <?php } // Show if recordset not empty ?>
              <?php if ($totalRows_WADApracticelist == 0) { // Show if recordset empty ?>
                <div class="WADANoResults">
                  <div class="WADANoResultsMessage">No record found.</div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                <div class="WADADetailsLinkArea">
                  <div class="WADADataNavButtonCell"><a href="practice_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div><p><strong>Reviews for this practice:</strong></p>
                <?php do { ?>
                  <table width="100%" border="0" cellspacing="5" cellpadding="2">
                    <tr>
                      <td width="23%"> </td>
                      <td width="77%"><?php echo $row_rsReviews['comments']; ?></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                    </tr>
                                  </table>
                  <?php } while ($row_WADApracticelist = mysql_fetch_assoc($WADApracticelist)); ?>
                <?php } // Show if recordset empty ?>
            </div>
          </div>
        </div>
        <div id="contentright">
          <p> </p>
        </div>
      </div>
      <div class="clr"></div>
      <div id="footer">hj</div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($WADApracticelist);
    mysql_free_result($rsReviews);
    ?>

    I haven't studied your code in detail, but it looks very much as though you have been editing the page without properly removing server behaviors through the Server Behaviors panel. Look at the following section:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    You have the connection file attached twice, and the GetSQLValueString() function is defined twice. However, the cause of all your problems lies here:
    $Parampractice_WADApracticelist = "-1";if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    Look how many times the same code is repeated. What's causing the problem are the three final sections where there is no argument passed to isset().
    Delete the code highlighted in red.

  • Parse errors on php page...

    I am new to php and am trying to create a php form on a website I am building for a friend. The form looks like I want it to on the page.
    http://www.mosaleen.com/order.html
    It also works... sending the info to my email upon submit and redirecting me to the "Thank you for your order page".
    The code to make the form function actually rests on the thank you page... I am attaching the code below.
    http://www.mosaleen.com/Order.php
    Problem is that when I validate the php page it tells me that there are parsing errors. Specifically:
    Unable to determine parse mode
    Line 1, Column 1:character "Y" not allowed in prolog
    AND
    Line 1, Column 85:end of document in prolog
    Does anyone know where the problem is? I have checked my css sheets and they are validating just fine, so there shouldn't be any issue there. The php script was adapted from the one at  http://dreamweaverspot.com/adobe-dreamweaver-tutorial-contact-forms/ if that helps.
    <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
              <br />
            Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
              <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
              </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

    I have changed the code to where the php form section is within the html of the page I created. (posted below)
    http://www.mosaleen.com/order_thanks.php
    This option gets rid of the parsing error but creates 16 errors in code when validated. It still looks right and still emails correctly.
    Is there a tutorial somewhere... or a simpler php code that would submit this form to email? It doesn't need to be fancy.  Or... if one of these options work, which one should I work with.
    Or... does it really matter that I am having the parsing error since the code looks right and is working? Not that it is clean design to leave it that way...
    I think the problem lies in trying to insert the php coding ( that submits the form to email ) inside the thank you page... but Im not sure how else to handle this. Any suggestions?
    Andrea
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
                <br />
              Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
                <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
            <p> </p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
            </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

  • ADF page breaks on refresh. XML parsing error

    Hi all,
    One of my jspx page breaks when the browser 'refresh' button is clicked.
    The error is the same but worded differently on different browsers.
    A snippet
    FF
    XML Parsing Error: mismatched tag. Expected: </link>.
    Location: https://xxxxx
    Line Number 85, Column 21:Chrome
    This page contains the following errors:
    error on line 85 at column 26: Opening and ending tag mismatch: link line 0 and head
    Below is a rendering of the page up to the first error.I'm passing parameters to this page with setPropertyListener, but I do the same for my other pages, all of which do not crash on refresh.
    Click on some link on this page then use the browser 'Back' button will not cause this error. Only 'refresh' is not working.
    Any ideas? Thanks in advance.

    Hi,
    Its close to impossible to guess without any information / code snippet.
    1. What is your JDev version?
    2. Which tag causes this issue? (What is there in Line Number 85, Column 21:?)
    3. Have you tried to simulate the same behavior in a simple application with only one page?
    -Arun

  • Calling Web Service - XML Parse Error

    Hello,
    I have created Client proxy to call a Web Service. This service requires WS Header. This is my code to create the header:
    concatenate
    '<soap:Header>'
    '  <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
      '  <wsse:UsernameToken Id="uuid-90128b0b">  '
         '  <wsse:Username>User123</wsse:Username>  '
         '  <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">Pass123</wsse:Password>  '
      '  </wsse:UsernameToken>  '
    '  </wsse:Security> '
    ' </soap:Header> ' into l_string.
    When I make the call, I receive the following error:
    CODE                                        SoapFaultCode:4
    ERRORTEXT                           #XML parse error.#
    If I comment out UsernameToken element, the errors says that UsernameToken is missing, once I added it, I get XML parse error.
    Here is the info from trace file:
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL       <
    XRFC> ->IF_SOAP_PROTOCOL~PRE_PROCESS() SOAP Session Protocol              <
    XRFC> preprocessed                                                        <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST =     <
    XRFC> CCTEST_AUC ,PATH = ,URL = ,SOAP Action = "runTransaction" )         <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent                     <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message        <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE    <
    XRFC> STATUSCODE() Received return code 500 ( Internal Server Error )   <
    XRFC>                                                                     <
    XRFC> ERROR 09:40:16: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE       <
    XRFC> PART~INITFOR_DESERIALIZE() SOAP Fault Exception caught: :          
    XML    <                                                                   
    XRFC> parse error.                                                                               
    <                   
    XRFC>                                                                     <
    Does anyone know what could be the problem?
    Thanks,
    Alex

    I was able to fix the issue last night, it was caused by preparing WS header incorrectly. Originally, I did not use wsse prefix, and this was issue number 1. Once I added the prefix, I thought that the following code is incorrect because it was only retreiving 1 elements - UsernameToken.
    xml_root = xml_document->get_root_element( ).
    xml_element ?= xml_root->get_first_child( ).
    * add header element by element to SOAP header
    while not xml_element is initial.
    name = xml_element->get_name( ).
    namespace = xml_element->get_namespace_uri( ).
    ws_header->set_request_header(
    name = name
    namespace = namespace
    dom = xml_element ).
    xml_element ?= xml_element->get_next( ).
    endwhile.
    So, I added to logic to get and then set all childeren, and this was the mistake. This is what caused "XML Parse Error". UsernameToken had already all info with user name and password. Once I removed the extra logic to get all 4 elements, the client proxy began working.
    Regards,
    Alex

  • WDDX Parse error in cfadmin Mail Spooler respool

    I recently discovered that emails were not being sent and were stacked up in the spooler.  In the CF Administrator interface, I verified that the mail server  connection was fine and it was. I went to "View Undelivered Mail" (under mail spool settings), reviewed the emails that were stuck and selected a random message to "respool".  Unfortunately, on every attempt to respool an email (one or many), I get the following error: "Error: WDDX packet parse error at line 1, column 1. Content is not allowed in prolog.."
    I have restarted the windows service twice, checked my email host...all to no avail. The error still occurs.
    I also unchecked the spooling option and emails (new ones only, not the spooled ones) are coming through just fine.
    I'm running CF9 full on Windows XP.
    How do I get the respool function working so I can send the stuck emails?  all suggestions welcome.

    /app/devtools/gcc-4.2.3-64/bin/g++ -L/home/john/sdc/lib/Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64 -L/home/john/oracle/lib -L/app/gcc-3.3.4/lib -L/app/gcc-3.2.3/lib -ldl -lpthread -lnsl -lrt -lstdc++ -lvs -lclntsh -L/home/cdev/pkgs/oas/Linux64/oaslinux64_2_4_05_03/lib -loas Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/db.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/owl.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/queue.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/log.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/titan.o -o /home/amehta17/sdc/bin/Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64/titan
    /usr/bin/ld: warning: libnnz10.so, needed by /home/john/oracle/lib/libclntsh.so, not found (try using -rpath or -rpath-link)
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzos_ServiceWriteQueue'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzosCipherSpecToStr'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzos_setCRLPath'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzteOpenPersona'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzdsi_initialize'
    All these symbols are not defined in libclntsh.so and also does not exist in libnnz10.so.
    I checked 32bit version of libnnz10.so has all above undefined symbols. This looks really weird to me why 64 bit version of libnnz10.so doesn't define these symbols.
    Let me know if you have any idea.

  • Parse errors in ib_linux.h when I try to compile C code for GPIB in Linux.

    Keep getting parse errors starting at line 63 of ib_linux.h when I try to compile C code linked
    to the drivers. Using ver 0.6 driver, compiling using gcc name.c cib.o -o name, and I have
    ugpib.h as an include in the c code. The Linux box currently has the 2.2 kernel running.
    Any ideas?

    Hello-
    It shouldn't be necessary to compile by hand. After the 0.6 driver is untarred, there should be an INSTALL script to run. Be sure to "su" to have root permissions before running this script. It may also be necessary to "chmod" the INSTALL file before doing a "./INSTALL"
    Randy Solomonson
    Applications Engineer
    National Instruments

  • SQL Parsing Errors

    We are running htmldb 1.5. We have an application running without problems on the development server. When we export the application and then import it on another server (QA or Production) we sometimes get the following errors in report regions that are retrieving data based on a page item:
    failed to parse SQL query:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    The form with the page item is displaying the value for the item, but the reports based on the page item fail. If we go into the htmldb development environment and edit the page for viewing purposes, the problem appears to disappear from that point on. We do not make any changes to the page.
    Is there a problem with the export/import process? Is there a way to make sure the page item has the value expected? We are using DML processing to fetch the record for the page. The fetch occurs 'After the Header'. Should the fetch be 'Before the Header'. Should we force a computation that reads the value into the page item again? If so, at what point?
    Usually we invoke the page and set the page item values with a url that looks like:
    f?p=&APP_ID.:510:#APP_SESSION#:UPDATE::510:P510_CLASS_ID:#CLASS_ID#
    Thanks for your help,
    Peter

    M Leclair (guest) wrote:
    : Using PL/SQL Parser, is it possible to obtain the parsing
    errors
    : output in other place than a file (ref: setErrorLog function)?
    : as varchar variables or kind?
    It is not possible at this time. It has been filed as an
    enhancement request.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • FlashRuntimeExtensions.h parse Errors.

    I am working on a Native Extension for iOS applications. All seems to go well until I try to build the native code in Xcode. I get about 20 errors on FlashRuntimeExtensions.h. Parse errors.
    "Parse issue: Must use 'enum' tag to refer to type 'FREResult':
    The compiler wants me to place an "enum" in front of every instance of FREResult in the header file, for instance, in front of:
    FREResult FREGetContextNativeData( FREContext ctx, void** nativeData );
    Any ideas what might be the problem?
    Isaac Rivera

    Hi:
    Just a guess. What is the extension of the file in which you have written your code? Is it .c or .cpp? Can you try making it .m?

  • Parse errors with 70_sare_obfu0.cf

    I've installed various .cf rules into /etc/mail/spamassassin (correct owner:group & permissions). They all install fine into Spamassassin except 70sareobfu0.cf downloaded from here...
    http://www.rulesemporium.com/rules.htm#obfu
    ...which produces screeds of parsing errors (total 610 'issues') reported by --lint as against 5 without that file (run as clamav user).
    I've re-downloaded a couple of times but all the same. I cannot find any notes refering to compatibility issues. Can anyone confirm that this file is OK with them or same parsing errors?
    Server 10.4.7, SpamAssassin version 3.0.1 running on Perl version 5.8.6.
    Ta
    -david

    lint output... (I've ommitted repetitive bits)
    ===============================
    debug: SpamAssassin version 3.0.1
    debug: Score set 0 chosen.
    debug: running in taint mode? yes
    debug: Running in taint mode, removing unsafe env vars, and resetting PATH
    debug: PATH included '/usr/local/bin', keeping.
    debug: PATH included '/bin', keeping.
    debug: PATH included '/sbin', keeping.
    debug: PATH included '/usr/bin', keeping.
    debug: PATH included '/usr/sbin', keeping.
    debug: Final PATH set to: /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
    debug: diag: module not installed: DBI ('require' failed)
    debug: diag: module installed: DB_File, version 1.810
    debug: diag: module installed: Digest::SHA1, version 2.10
    debug: diag: module installed: IO::Socket::UNIX, version 1.21
    debug: diag: module installed: MIME::Base64, version 3.05
    debug: diag: module not installed: Net::DNS ('require' failed)
    debug: diag: module not installed: Net::LDAP ('require' failed)
    debug: diag: module not installed: Razor2::Client::Agent ('require' failed)
    debug: diag: module installed: Storable, version 2.13
    debug: diag: module installed: URI, version 1.35
    debug: ignore: using a test message to lint rules
    debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
    debug: config: read file /etc/mail/spamassassin/init.pre
    debug: using "//usr/share/spamassassin" for default rules dir
    debug: config: read file //usr/share/spamassassin/10_misc.cf
    debug: config: read file //usr/share/spamassassin/20antiratware.cf
    debug: config: read file //usr/share/spamassassin/20bodytests.cf
    debug: config: read file //usr/share/spamassassin/20_compensate.cf
    debug: config: read file //usr/share/spamassassin/20dnsbltests.cf
    debug: config: read file //usr/share/spamassassin/20_drugs.cf
    debug: config: read file //usr/share/spamassassin/20fake_helotests.cf
    debug: config: read file //usr/share/spamassassin/20headtests.cf
    debug: config: read file //usr/share/spamassassin/20htmltests.cf
    debug: config: read file //usr/share/spamassassin/20metatests.cf
    debug: config: read file //usr/share/spamassassin/20_phrases.cf
    debug: config: read file //usr/share/spamassassin/20_****.cf
    debug: config: read file //usr/share/spamassassin/20_ratware.cf
    debug: config: read file //usr/share/spamassassin/20uritests.cf
    debug: config: read file //usr/share/spamassassin/23_bayes.cf
    debug: config: read file //usr/share/spamassassin/25body_testses.cf
    debug: config: read file //usr/share/spamassassin/25body_testspl.cf
    debug: config: read file //usr/share/spamassassin/25_hashcash.cf
    debug: config: read file //usr/share/spamassassin/25head_testses.cf
    debug: config: read file //usr/share/spamassassin/25head_testspl.cf
    debug: config: read file //usr/share/spamassassin/25_spf.cf
    debug: config: read file //usr/share/spamassassin/25_uribl.cf
    debug: config: read file //usr/share/spamassassin/30textde.cf
    debug: config: read file //usr/share/spamassassin/30textes.cf
    debug: config: read file //usr/share/spamassassin/30textfr.cf
    debug: config: read file //usr/share/spamassassin/30textit.cf
    debug: config: read file //usr/share/spamassassin/30textnl.cf
    debug: config: read file //usr/share/spamassassin/30textpl.cf
    debug: config: read file //usr/share/spamassassin/30textsk.cf
    debug: config: read file //usr/share/spamassassin/50_scores.cf
    debug: config: read file //usr/share/spamassassin/60_whitelist.cf
    debug: using "//etc/mail/spamassassin" for site rules dir
    debug: config: read file //etc/mail/spamassassin/70sareadult.cf
    debug: config: read file //etc/mail/spamassassin/70saregenlsubj0.cf
    debug: config: read file //etc/mail/spamassassin/70sareheader0.cf
    debug: config: read file //etc/mail/spamassassin/70sareobfu0.cf
    debug: config: read file //etc/mail/spamassassin/70sareoem.cf
    debug: config: read file //etc/mail/spamassassin/70sarespoof.cf
    debug: config: read file //etc/mail/spamassassin/70sareunsub.cf
    debug: config: read file //etc/mail/spamassassin/72sare_redirectpost3.0.0.cf
    debug: config: read file //etc/mail/spamassassin/88FVGTheaders.cf
    debug: config: read file //etc/mail/spamassassin/88FVGTsubject.cf
    debug: config: read file //etc/mail/spamassassin/88FVGTuri.cf
    debug: config: read file //etc/mail/spamassassin/bogus-virus-warnings.cf
    debug: config: read file //etc/mail/spamassassin/chickenpox.cf
    debug: config: read file //etc/mail/spamassassin/local.cf
    debug: using "/var/clamav/.spamassassin" for user state dir
    debug: using "/var/clamav/.spamassassin/user_prefs" for user prefs file
    debug: config: read file /var/clamav/.spamassassin/user_prefs
    debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
    debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
    debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
    config: SpamAssassin failed to parse line, skipping: ??
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUALWAYS 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUCIALIS 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFU_CREDITPOX 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUGOALS 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFU_ORDERINGSPL 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFURELIABLE 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFURESULTING 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUSOMA 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUSTOCKS 0
    config: SpamAssassin failed to parse line, skipping: meta SAREOBFUAFFORD 0
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping: full SAREOBFUAMP2B m'(?:(?!http://)h.?t.?t.?p.?:.?/.?/)[^/\?]{4,40}\&'is
    config: SpamAssassin failed to parse line, skipping: describe SAREOBFUAMP2B invalid character within URI host/domain
    config: SpamAssassin failed to parse line, skipping: score SAREOBFUAMP2B 2.555
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping: full SAREOBFUCONTENT01 /Content-Type: ;text\/plain;/
    config: SpamAssassin failed to parse line, skipping: describe SAREOBFUCONTENT01 Obfuscation via content-type header
    config: SpamAssassin failed to parse line, skipping: score SAREOBFUCONTENT01 2.500
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping: body SAREOBFU_DRUGDOL1SPC m{\$1\.\s$1.s+$1.s}i
    config: SpamAssassin failed to parse line, skipping: describe SAREOBFU_DRUGDOL1SPC found apparent obfuscation of word used in spam
    config: SpamAssassin failed to parse line, skipping: score SAREOBFU_DRUGDOL1SPC 2.333
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    config: SpamAssassin failed to parse line, skipping:
    etc, etc,
    lint: 614 issues detected. please rerun with debug enabled for more information.
    ===================================
    If the obfu file is removed, it all goes fine.
    -david

Maybe you are looking for

  • What can i do to get security questions back if i forgot my backup mail

    what can i do to get security questions back if i forgot my backup mail i had a little trouble with my apple id i bougth a gift card to itunes and would buy somthinigs   but something got wrong in the start when i maked the id  thinked that i could r

  • ABAP Query and ABAP Report

    Hi, 1.What is the difference between ABAP Query and ABAP report? 2.What are the advantages of LSMW over BDC? Regards, Ajit

  • Can the computer sleep while encoding?

    I am currently in the process of making a DVD from iMovie using iDVD. While I knew it would take a long time to go through all the encoding, I didn't count on it lasting this long. I have to pack up the computer and take it home, possibly before it f

  • FORUM Problem: My Profile: Location

    I have noticed that when updating my profile, the Location keeps showing as US even though I keep altering it. Refer to profile for: thevoyager Solved! Go to Solution.

  • What ia Adobe Acrobat and the end license?

    What is Adobe Acrobat and the end user license agreement?