PHP Submit Input Problems

Hi,
I am having a big problem with PHP, I wish to submit a form
to either 'Update' or 'Delete' a record, it works fine in Firefox
and Safari but not Internet Explorer.
Here is a basic code example.
Working version
http://saawcomputing.co.uk/form-test.php

stuart1231 wrote:
> <form action="form-test.php" method="post">
> <input type="image" src="3SM/admin/media/update1.gif"
name="button"
> value="update" />
> <input type="image" src="3SM/admin/media/delete1.gif"
name="button"
> value="delete" />
Internet Explorer handles button images differently from
ordinary
buttons. Instead of passing the value, it passes the x and y
positions
of the mouse click. Use the following code to examine the
data that's
actually being sent when the form is submitted:
if ($_POST) {
print_r($_POST);
I can't remember the exact details of what IE sends, but you
will need
to add extra checks to your conditional statement to detect
which button
is being clicked - by value in most browsers, but by x or y
position in
Internet Explorer.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Php mySQL filtering problem...really desperate

    Hi
    I have a live site that is currently causing me some issues
    It is a fashion site that sends the product information that is pulled in from sevaral table to the checkout.. the issue i am having is the incorrect stock id is being sent to the checkout so when it returns from the gateway it is updating the wrong stock levels.
    What is happening currently is the stockID from the first size is being sent.
    what i have is the following tables
    table 1 - beauSS13_products
    ProductID
    CatID
    table 2 - beauSS13_Cat
    catID
    table3 - beauSS13_Stock
    StockID
    ID (this was named like this incorrectly) but this joins with ProductID
    SizeID
    Stock
    beauSS13_SizeList
    SizeID
    Size
    the SQL is
    $var1_rsProduct = "-1";
    if (isset($_GET['ProductID'])) {
      $var1_rsProduct = $_GET['ProductID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauSS13_Cat, beauSS13_products, beauSS13_Stock, beauSS13_SizeList WHERE beauSS13_products.CatID = beauSS13_Cat.catID AND beauSS13_products.ProductID = beauSS13_Stock.ID AND beauSS13_Stock.SizeID = beauSS13_SizeList.SizeID AND beauSS13_products.ProductID = %s AND beauSS13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    i think beauSS13_products.ProductID = beauSS13_Stock.ID shouldnt be there ( but am not sure what it should have )
    I need to identify the Unique Stock ID from table3 - beauSS13_Stock
    basically cant get my head round the logic...
    if i remove beauSS13_products.ProductID = beauSS13_Stock.ID
    then in the
    select list
    <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
    it outputs all sizes from the ProductID and not just from the selected item
    i have just tried
          <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?><?php echo $row_rsProduct['StockID']; ?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
    and adding <?php echo $row_rsProduct['StockID']; ?>
    i can see the correct StockID is showing in the size menu but i just need to get that to send to cart
    this is the code that sends the details to the cart
    $XC_editAction1 = $_SERVER["PHP_SELF"];
    if (isset($_SERVER["QUERY_STRING"])) $XC_editAction1 = $XC_editAction1 . "?" . $_SERVER["QUERY_STRING"];
    if (isset($_POST["XC_addToCart"]) && $_POST["XC_addToCart"] == "form1") {
      $NewRS=mysql_query($query_rsProduct, $beau) or die(mysql_error());
      $XC_rsName="rsProduct"; // identification
      $XC_uniqueCol="ProductID";
      $XC_redirectTo = "";
      $XC_redirectPage = "../cart.php";
      $XC_BindingTypes=array("RS","RS","FORM","FORM","RS","RS","RS","NONE");
      $XC_BindingValues=array("StockID","ProductID","SelectSize","Quantity","Product","Price"," Stock","");
      $XC_BindingLimits=array("","","","","","","","");
      $XC_BindingSources=array("","","","","","","","");
      $XC_BindingOpers=array("","","","","","","","");
      require_once('XCInc/AddToXCartViaForm.inc');

    >>Why do you think that?
    because it was looking for the specific record, but having added <?php echo $row_rsProduct['StockID']; ?> to the select list it needs to be there
    >>You are joining 4 tables so you need 3 join conditions. If that's the correct relationship ( and only you will know that) then the SQL is correct.
    yes that is the way the joins are meant to be
    >>The problem is most likely how you are assigning values to the cart. When the user selects a color, how is the associated stock id bound to the array?
    its sizes they select but same thing, in the above code that the thing i need to pass that value to the cart. the way i have it at the moment is in the code above
    i have icluded the full code below to show you how its working
    // *** X Shopping Cart ***
    $useSessions = false;
    $XCName = "beauloves";
    $XCTimeout = 1;
    $XC_ColNames=array("StockID","ProductID","Size","Quantity","Name","Price","Stock","Total") ;
    $XC_ComputedCols=array("","","","","","","","Price");
    require_once('XCInc/XCart.inc');
    $var1_rsProduct = "-1";
    if (isset($_GET['ProductID'])) {
      $var1_rsProduct = $_GET['ProductID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauSS13_Cat, beauSS13_products, beauSS13_Stock, beauSS13_SizeList WHERE beauSS13_products.CatID = beauSS13_Cat.catID AND beauSS13_products.ProductID = beauSS13_Stock.ID AND beauSS13_Stock.SizeID = beauSS13_SizeList.SizeID AND beauSS13_products.ProductID = %s AND beauSS13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    $rsProduct = mysql_query($query_rsProduct, $beau) or die(mysql_error());
    $row_rsProduct = mysql_fetch_assoc($rsProduct);
    $totalRows_rsProduct = mysql_num_rows($rsProduct);
    mysql_select_db($database_beau, $beau);
    $query_rsCategory = sprintf("SELECT * FROM beauSS13_products WHERE
    beauSS13_products.CatID = (SELECT CatID from beauSS13_products WHERE beauSS13_products.ProductID = %s)", GetSQLValueString($var1_rsProduct, "int"));
    $rsCategory = mysql_query($query_rsCategory, $beau) or die(mysql_error());
    $row_rsCategory = mysql_fetch_assoc($rsCategory);
    $totalRows_rsCategory = mysql_num_rows($rsCategory);
    //  *** Add item to Shopping Cart via form ***
    $XC_editAction1 = $_SERVER["PHP_SELF"];
    if (isset($_SERVER["QUERY_STRING"])) $XC_editAction1 = $XC_editAction1 . "?" . $_SERVER["QUERY_STRING"];
    if (isset($_POST["XC_addToCart"]) && $_POST["XC_addToCart"] == "form1") {
      $NewRS=mysql_query($query_rsProduct, $beau) or die(mysql_error());
      $XC_rsName="rsProduct"; // identification
      $XC_uniqueCol="ProductID";
      $XC_redirectTo = "";
      $XC_redirectPage = "../cart.php";
      $XC_BindingTypes=array("RS","RS","FORM","FORM","RS","RS","RS","NONE");
      $XC_BindingValues=array("StockID","ProductID","SelectSize","Quantity","Product","Price"," Stock","");
      $XC_BindingLimits=array("","","","","","","","");
      $XC_BindingSources=array("","","","","","","","");
      $XC_BindingOpers=array("","","","","","","","");
      require_once('XCInc/AddToXCartViaForm.inc');
    function DoFormatCurrency($num,$dec,$sdec,$sgrp,$sym,$cnt) {
      setlocale(LC_MONETARY, $cnt);
      if ($sdec == "C") {
        $locale_info = localeconv();
        $sdec = $locale_info["mon_decimal_point"];
        $sgrp = $sgrp!="" ? $locale_info["mon_thousands_sep"] : "";
        $sym = $cnt!="" ? $locale_info["currency_symbol"] : $sym;
      $thenum = $sym.number_format($num,$dec,$sdec,$sgrp);
      return $thenum;
    then below is the form that sends the information to the cart
    <form id="form1" name="form1" method="post" action="<?php echo $XC_editAction1; ?>">
    <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
          <select name="Quantity">
            <option value="Select Quantity">Select Quantity</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
          </select>
    <input type="image" src="../images/SS13AddToCart.jpg" border="0" name="submit"/>
    <input type="hidden" name="XC_recordId" value="<?php echo $row_rsProduct['ProductID']; ?>" />
          <input type="hidden" name="XC_addToCart" value="form1" />
          </form>

  • Submit input in my form no longer works in Safari

    I have a form that I use to have people send me their inquires. When I click "submit" in Safari - nothing happens. When I use Firefox on mac, firefox on windows and IE on window, the submit button works fine.
    Below is the form code I am using:
    <form action="contactconfirm.php" method="post" name="contactForm" id="contactForm">
    <fieldset id="contact">
    <legend>Contact Information</legend>
    <label class="blockLabel">
    Name:
    <input name="Name" type="text" id="Name" size="50" />
    </label>
    <label class="blockLabel">
    Company name (if applicable):
    <input name="Company_Name" type="text" id="Company_Name" size="50" />
    </label>
    <label class="blockLabel">
    Daytime Phone: (Include area code)*
    <input name="Day_Phone" type="text" id="Day_Phone" size="50" />
    </label>
    <label class="blockLabel">
    Evening Phone: (Include area code)
    <input name="Evening_Phone" type="text" id="Evening_Phone" size="50" />
    </label>
    <label class="blockLabel">
    Email:*
    <input name="Email" type="text" id="Email" size="50" />
    </label>
    </fieldset>
    <fieldset id="location">
    <legend>Location/Time of Event</legend>
    <label class="blockLabel">
    Event Date (00/00/0000):
    <input name="Event" type="text" id="Event" maxlength="10" />
    </label>
    <label class="blockLabel">
    Location (city,state):
    <input name="Location" type="text" id="Location" maxlength="100" />
    </label>
    </fieldset>
    <fieldset id="details">
    <legend>More detailed information</legend>
    <label for="Description" class="blockLabel">Please describe event or service you are requesting:
    </label>
    <textarea rows="4" name="Description" id="Description" cols="93"></textarea>
    Best Time to Contact You:
    <label>
    <input type="radio" checked="checked" name="Contact_Time" value="Daytime" id="Daytime" />
    Daytime
    </label>
    <label>
    <input type="radio" name="Contact_Time" value="Evening" id="Evening" />
    Evening
    </label>
    <label>
    <input type="radio" name="Contact_Time" value="Weekend" id="Weekend" />
    Weekend
    </label>
    </fieldset>
    Please note: We respond to all inquiries. If you do not receive a response within 24 hours please call us at (540) 722-9000.
    <label style="font-size:14px">To verify you are human, please enter the first three letters of the following:
    <?php
    $ranstr = chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90));
    echo chunk_split($ranstr,1,' ');
    ?>
    <input name="ranstr" type="text" size="90" maxlength="75" />
    </label>
    <input name="checkran" type="hidden" id="checkran" value="<?php echo hash('sha1',substr($ranstr,0,3).'trickery is everything');?>" /> <input type="submit" value="Submit" /> <input type="reset" value="Reset" />
    </form>

    I'm having a similar difficulty.
    I have a website designed in Flash, with a registration form which uses a php script to send the registration information as an email.
    Testing the flash file locally, everything works. Test the html page (locally) - in Safari - everything works. Try the page online - in Safari - no joy. Try the same in Firefox - bingo, the email is sent.
    To further drive me crazy, using my test html file and basic flash form, on the same server, same directory and same php script as the web site.... Safari does work????????

  • Acroread 8.x CJK input problem

    See also https://bugzilla.novell.com/show_bug.cgi?id=353251
    CJK input doesnt work right in the English version of
    acroead 8.1.1 or the pre-release version 8.1.2.
    First of all, one needs to set
    export GTK_IM_MODULE=xim
    to make acroread react at all to the hotkey which triggers
    SCIM input (default hotkeys on openSUSE are Shift+Space and Control+Space).
    When GTK_IM_MODULE=scim or GTK_IM_MODULE=scim-bridge, acroread
    wont react to the hotkey which enables SCIM at all.
    With GTK_IM_MODULE=xim, the scim input method *can* be
    enabled by Shift+Space. But it doesnt work right.
    One can see correct Japanese in the popups shown by scim when
    converting phonetics to Chinese characters. But the predit string
    shows garbage which seems to resemble Arabic. And after comitting
    everything typed is converted to question marks (acroread 8.1.1)
    or boxes (acroread 8.1.2).
    I am talking about the *English* versions of acroread here, not
    localized Japanese versions like e.g.
    ftp://ftp.adobe.com/pub/adobe/reader/unix/8.x/8.1.1/jpn
    As it is not nice to have completely packages for each language, I
    hope that the different language versions can be merged into one in
    the long run.
    It would be very nice if there were only one basic version and to
    support other languages one only had to add fonts and translations and
    not exchange the binaries.

    Some more comments from: https://bugzilla.novell.com/show_bug.cgi?id=353251
    ------- Comment #5 From Gaurav Jain 2008-01-11 10:48:18 MST -------
    [ ] Private
    Mike,
    Could you confirm if everything is working fine with the Japanese Reader
    downloaded from the Reader website? That'll be really strange since the Viewer
    binaries should be identical in the English and Japanese versions. The only
    difference in the 2 installers should be in the fonts and the resource
    libraries.
    -vc
    ------- Comment #6 From Mike Fabian 2008-01-11 19:43:16 MST -------
    [ ] Private
    OK, I tried with the special Japanese version of acroread (8.1.1)
    as well.
    There is no difference in behaviour between the Japanese acroread
    8.1.1 and the English acroread 8.1.1 and the English acroread 8.1.1 as
    far as the input problem reported here is concerned! All of them show
    the problem as reported here.
    But I found that it depends on the locale. If acroead is started
    in ja_JP.UTF-8 locale
    LANG=ja_JP.UTF-8 acroread
    the problem occurs as reported here.
    However, if acroread is started in ja_JP.eucJP locale
    LANG=ja_JP.eucJP acroread
    the Japanese input works fine! Thats the same with the Japanese and
    the English version of acroread.
    As UTF-8 locales are the default nowadays on most Linux distributions,
    it is important that this works not only in legacy locales like
    ja_JP.eucJP but also in ja_JP.UTF-8.
    ------- Comment #7 From Gaurav Jain 2008-01-13 09:25:27 MST -------
    [ ] Private
    The screen-shot seems to indicate you are trying to enter japanese characters
    in a standard GTK+ edit field. The core Reader code actually doesn't interact
    much with the control during the process of entry of text.
    Could you try the following -
    1. When the default locale is eucJP, what happens in a standard edit field in
    some other GTK+ app., for instance gtk-demo? If you don't have gtk-demo, you
    could even try the same thing in the Open dialog in the Adobe Reader, where you
    type the file name.
    2. If you don't export GTK_IM_MODULE=xim, can you make the IME appear in some
    other GTK+ app. like the gtk-demo?
    My guess is this (atleast point 1 above) may be a problem with GTK+, though we
    are investigating this at our end as well. Maybe an issue with the fonts that
    get loaded when the locale is UTF-8, vs eucJP. That's the reason, the
    characters loaded from the IME are showing as question marks.
    -vc
    ------- Comment #8 From Mike Fabian 2008-01-14 05:18:46 MST -------
    [ ] Private
    Gaurav Jain> 1. When the default locale is eucJP, what happens in a
    Gaurav Jain> standard edit field in some other GTK+ app., for instance
    Gaurav Jain> gtk-demo?
    In gtk-demo, Japanese input works both for ja_JP.eucJP locale
    *and* for ja_JP.UTF-8 locale.
    And it works for all values of GTK_IM_MODULE which I tried
    (GTK_IM_MODULE=xim, GTK_IM_MODULE=scim, and GTK_IM_MODULE=scim-bridge.
    Gaurav Jain> If you don't have gtk-demo, you could even try
    Gaurav Jain> the same thing in the Open dialog in the Adobe Reader,
    Gaurav Jain> where you type the file name.
    Japanese input in the Open dialog of the Adobe Reader behaves
    exactly like in the search field of the Adobe Reader:
    - works fine in ja_JP.eucJP locale
    (for all values of GTK_IM_MODULE)
    - does not work in ja_JP.UTF-8 locale
    (not for any of the above mentioned values of GTK_IM_MODULE)
    Gaurav Jain> 2. If you don't export GTK_IM_MODULE=xim, can you make
    Gaurav Jain> the IME appear in some other GTK+ app. like the gtk-demo?
    In gtk-demo the IME appears and works fine.
    In acroread, the IME appears for all values of GTK_IM_MODULE (xim,
    scim, scim-bridge) and input works fine in ja_JP.eucJP locale. In
    ja_JP.UTF-8 locale, the IME appears as well and input seems to be
    possible but the result is garbage as in my screen shot.
    ------- Comment #9 From Gaurav Jain 2008-01-22 04:06:32 MST -------
    [ ] Private
    Hello Mike,
    I tried reproducing the bug on SLED 10, openSUSE 10.3, and openSUSE
    11.0(http://download.opensuse.org/distribution/11.0-Alpha1/iso/cd/openSUSE-11.0-Alpha1-GNO ME-i386.iso)
    but was unable to do so.I could see no difference in the behavior based on
    locale.Also,the problem of garbage predit strings in case of utf8 is not
    reproducible at my end.
    Could you please attach a screenshot of your SCIM setup settings,and the
    download location of openSUSE 11.0.
    Regards,
    Sanika
    ------- Comment #10 From Mike Fabian 2008-01-23 10:48:40 MST -------
    [ ] Private
    I found that the problem occurs *only* with GTK_IM_MODULE=xim,
    contrary to what I wrote in comment #8.
    That was my fault, because I still had
    # Workaround for http://rudin.suse.de:8888/show_bug.cgi?id=85416
    # (see comment #37):
    export GTK_IM_MODULE=xim
    patched into the beginn of the acroread start-script.
    Apparently this is not needed anymore, input using
    GTK_IM_MODULE=scim and GTK_IM_MODULE=scim-bridge seems to
    work fine now in acroread 8.1.2.
    *But* the problem I described here occurs with GTK_IM_MODULE=xim.
    Sanika,
    can you reproduce the problem with GTK_IM_MODULE=xim ?

  • Can't submit a problem report...

    Does anyone know how to submit a problem report that won't allow me the 'send to apple' feature?
    Or can anyone decipher this code?
    panic(cpu 1 caller 0x001A49CB): Unresolved kernel trap (CPU 1, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x00000000, CR3: 0x00e7d000, CR4: 0x000006e0
    EAX: 0x00000000, EBX: 0x02f6c400, ECX: 0x02fb7e68, EDX: 0x02bdff00
    CR2: 0x00000000, EBP: 0x13e5be38, ESI: 0x045a4600, EDI: 0x045a4600
    EFL: 0x00010202, EIP: 0x2abd94fd, CS: 0x00000008, DS: 0x02f60010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x13e5bc28 : 0x128d0d (0x3cc65c 0x13e5bc4c 0x131f95 0x0)
    0x13e5bc68 : 0x1a49cb (0x3d2a94 0x1 0xe 0x3d22b8)
    0x13e5bd78 : 0x19b3a4 (0x13e5bd90 0x0 0x1 0x3bf414)
    0x13e5be38 : 0x2abdb787 (0x2f6c400 0x45a4600 0x0 0x0)
    0x13e5be58 : 0x2abdc2b8 (0x2f6c400 0x25d7cc0 0x13e5be98 0x2f6c400)
    0x13e5be78 : 0x2abdb832 (0x2f6c400 0x45a4600 0x0 0x0)
    0x13e5bea8 : 0x38ab50 (0x2f6c400 0x45a4600 0x13e5bed8 0x381c4a)
    0x13e5bed8 : 0x39aa67 (0x45a4600 0x2f6c400 0x0 0x0)
    0x13e5bf08 : 0x38a7b8 (0x261efc0 0x38aae6 0x45a4600 0x2f6c400)
    0x13e5bf58 : 0x38e4b8 (0x0 0x0 0x0 0x0)
    0x13e5bfa8 : 0x38e695 (0x5 0x38e674 0x5 0x25eb500)
    0x13e5bfc8 : 0x19b21c (0x5 0x0 0x19e0b5 0x25f6f5c) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.digidesign.fwfamily.driver(7.3f120)@0x2abd4000
    dependency: com.apple.iokit.IOFireWireAVC(1.9.7)@0x8af000
    dependency: com.apple.iokit.IOFireWireFamily(2.6.0)@0x87d000
    dependency: com.apple.iokit.IOAudioFamily(1.6.0b7)@0x761000
    Kernel version:
    Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386
    Model: MacBookPro2,2, BootROM MBP22.00A5.B07, 2 processors, Intel Core 2 Duo, 2.16 GHz, 1 GB
    Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 128 MB
    Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
    AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x87), 1.2.2
    Bluetooth: Version 1.9.5f4, 2 service, 1 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: FUJITSU MHW2120BH, 111.79 GB
    Parallel ATA Device: HL-DT-ST DVDRW GWA4080MA
    USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
    USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
    USB Device: Bluetooth USB Host Controller, Apple, Inc., Up to 12 Mb/sec, 500 mA
    USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to 12 Mb/sec, 500 mA
    I'm lost! hahahaha! Any advice or suggestions would be of great help!

    HI and Welcome to Apple Discussions...
    You need to tell us exactly what happens when you are using your MacBookPro. Are you using an application and the Mac freezes up? We need details...
    Try booting from your install disk and run Disk Utility.
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If you can't boot from an install disk, try booting in Safe Mode
    Carolyn

  • Solution for terminal input problem

    (my english is bad, sorry)
    Hi, this thread is for programmers who like console applications (ncurses based).
    As you all know, terminal emulators have a big problem with user input. Their input system is good for CLI, but really sucks when using full screen applications like vim, emacs, mc, ncmpc, htop, rtorrent, irssi (I mean all ncurses based or slang based which use cursor movement). Examples of this problem:
    - Ctrl-L and Ctrl-Shift-L generate the same single byte in the terminal; namely 0x0c. They are indistinct.
    - Ctrl-I and Tab generate the same single byte in the terminal; namely 0x09. They are indistinct.
    - UTF-8, Alt+letter, Esc-letter all generate the same bytes in the terminal. E.g. é vs. Alt+C Alt+) vs. Esc C Esc )
    But there is no simple and nice solution. Problems cannot be solved without fixing the terminal itself and without breaking some backward compatibility. But I think a lot of console-addicted programmers want to solve them.
    So, here is my way of solving this problem.
    http://nsf.110mb.com/termbox/termbox-concept.html
    The main idea is to add a new terminal mode called "RAW input". This mode will send special events almost directly from X11 to console application.
    On this page I introduced a simple demo application and an rxvt-unicode-9.02 patch.
    In this version of my hack, echoing in terminal is broken. You can't enable echo with this new mode yet. But I can solve this too.
    It is simple and needs a little bit more hacking of terminal. Terminal should start all input messages with unique escape sequence and when it receives echo of these messages, it should ignore them. But also terminal should send these input messages *with* usual symbols, so they can be echoed.
    So I want to know what do you think about all this.

    shining wrote:
    nsf wrote:So I want to know what do you think about all this.
    I think that you might want to find a more specialized place to get more valuable feedbacks. But also that I never noticed these input problems so it has never bothered me
    Yes, I think I should try usenet news groups
    These input problems are not so big deal, but when you want to use your keyboard at maximum, they kick your ass
    I discovered this problem when I was working on ncurses minimalistic replacement. But in the net there are talks about this too.
    Here for example: http://www.nabble.com/Improve-vim%27s-k … 34943.html
    Last edited by nsf (2008-06-16 07:06:37)

  • Php web site problem - after loding the web site  blank white page

    Hi Guys
    i've set up Mac server with 10.6.2 its running 3 web sites . the problem is when i upload the web files in to my Mac server and start to browsing from my laptop via internet, web site is not loading. So i upload the sample web page just as a simple html file. its working fine , But when i upload this php web site problem agin . problem : site is loading from loading bar, But i can not see anything from browser just white page , no page source nothing ......
    any suggestions ?

    This is the Error from Server Admin
    ing: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 184
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 184
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 193
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 217
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 226
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function eregi() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 188
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 189
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 56
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 198
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 198
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-onl ine.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 47
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-off line.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 52
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-lar ge-online.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 57
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-lar ge-offline.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 62
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:57:23 2010] [notice] caught SIGTERM, shutting down
    [Mon Apr 12 14:57:56 2010] [warn] module php5_module is already loaded, skipping
    [Mon Apr 12 14:57:57 2010] [notice] Apache/2.2.13 (Unix) PHP/5.3.0 configured -- resuming normal operations
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5

  • PHP form submission Problem

    Dear all,
    PHP enquiry form submission some error is comes
    "Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/en45/send_form_email.php on line 11"
    Please help me
    WEBLINK
    PHP goes like this
    <!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>PHP Form</title>
    </head>
    <body><?php
    if(isset($_POST['email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['first_name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['telephone']) ||
                        !isset($_POST['company_name']) ||
            !isset($_POST['comments'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['first_name']; // required
        $email_from = $_POST['email']; // required
        $telephone = $_POST['telephone']; // not required
              $last_name = $_POST['company_name']; // required
        $comments = $_POST['comments']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$first_name)) {
        $error_message .= 'The First Name you entered does not appear to be valid.<br />';
      if(!preg_match($string_exp,$company_name)) {
        $error_message .= 'The Last Name you entered does not appear to be valid.<br />';
      if(strlen($comments) < 2) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "First Name: ".clean_string($first_name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Telephone: ".clean_string($telephone)."\n";
              $email_message .= "Company Name: ".clean_string($company_name)."\n";
        $email_message .= "Comments: ".clean_string($comments)."\n";
    /* Redirect visitor to the thank you page */
    header('Location:gt.html');
    exit();
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    <!-- include your own success html here -->
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>
    </body>
    </html>

    some error now
    Parse error: syntax error, unexpected T_STRING in /home/newtocli/public_html/send_form_email.php on line 5
    My form like this
    <form name="contactform" method="post" action="send_form_email.php">
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="first_name" maxlength="50" size="30" value="Name*:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="email" maxlength="80" size="30" value="E-mail*:">
                                                           </div>
                                                                          <div class="clear"><!-- --></div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="telephone" maxlength="30" size="30" value="Phone.:">
                                                            </div>
                                                                                                                                                <div class="field text">
                                                            <input  type="text" name="company_name" maxlength="50" size="30" value="Company:">
                                                            </div>
                                                                          <div class="clear"><!-- --></div>
                                                                          <div class="field textarea"><div>
                                                                            <textarea  name="comments"></textarea>
                                </div></div>
                                                                          <div class="submit">
                                                                                    <p>* - Required fields</p>
                                                                                    <input type="submit" value="Send" />
                                                                          </div>
                                                                </form>

  • Flex + amf php server deployment problem

    Hi all,
    After almost a month of research on this problem. I was able to remove all my errors on production but still not able to retrieve data.
    Please help......
    Here is the scenerio details :
    I created a form which will take input from user and store those values in database.you can visit it here on web server :
    http://www.accurateoptics.in/
    I followed all the steps mentioned on adobe's test drive tutorial. It works fine on my local machine with WAMP installation. But the moment,
    I upload it...Bang!!!! there comes the error ::::
    Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: http://www.accurateoptics.in/gateway.php
    I googled again, read a lot of articles and figured out that some changes are required in my gateway.php and amf-config.ini files for production environment.
    Did the necessary changes and uploaded again.Bang!!!!!!! new error comes:::::::
    Channel disconnected before an acknowledgement was received.
    to solve this, again googled a lot and figured out that i need to upload zend framework files so, did that and setting up the path for zend in amf-config.ini.
    uploaded again.
    Now, i am stuck at this point where no error is thrown only an alert box comes with a ok button. also, data is not retrieved from server.
    I dont know what error i am making.here is my amf-config.ini file:::::::::::::
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =http://www.accurateoptics.in
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    ;zend_path =
    zend_path = ./ZendFramework/library
    [zendamf]
    amf.production = true
    amf.directories[]= http://www.accurateoptics.in/services
    here is my gatway.php file :::::::::::::;
    <?php
    ini_set("display_errors", 1);
    //$dir = dirname(__FILE__);
    $dir = '.';
    $webroot = $_SERVER['DOCUMENT_ROOT'];
    //$configfile = "$dir/amf_config.ini";
    $configfile = "amf_config.ini";
    //default zend install directory
    $zenddir = $webroot. '/ZendFramework/library';
    //Load ini file and locate zend directory
    if(file_exists($configfile)) {
    $arr=parse_ini_file($configfile,true);
    if(isset($arr['zend']['webroot'])){
    $webroot = $arr['zend']['webroot'];
    $zenddir = $webroot. '/ZendFramework/library';
    if(isset($arr['zend']['zend_path'])){
    $zenddir = $arr['zend']['zend_path'];
    // Setup include path
    //add zend directory to include path
    set_include_path(get_include_path().PATH_SEPARATOR.$zenddir);
    // Initialize Zend Framework loader
    require_once 'Zend/Loader/Autoloader.php';
    Zend_Loader_Autoloader::getInstance();
    // Load configuration
    $default_config = new Zend_Config(array("production" => false), true);
    $default_config->merge(new Zend_Config_Ini($configfile, 'zendamf'));
    $default_config->setReadOnly();
    $amf = $default_config->amf;
    // Store configuration in the registry
    Zend_Registry::set("amf-config", $amf);
    // Initialize AMF Server
    $server = new Zend_Amf_Server();
    $server->setProduction($amf->production);
    if(isset($amf->directories)) {
    $dirs = $amf->directories->toArray();
    foreach($dirs as $dir) {
    // get the first character of the path.
    // If it does not start with slash then it implies that the path is relative to webroot. Else it will be treated as absolute path
    $length = strlen($dir);
    $firstChar = $dir;
    if($length >= 1)
    $firstChar = $dir[0];
    if($firstChar != "/"){
    // if the directory is ./ path then we add the webroot only.
    if($dir == "./"){
    $server->addDirectory($webroot);
    }else{
    $tempPath = $webroot . "/" . $dir;
    $server->addDirectory($tempPath);
    }else{
    $server->addDirectory($dir);
    // Initialize introspector for non-production
    if(!$amf->production) {
    $server->setClass('Zend_Amf_Adobe_Introspector', '', array("config" => $default_config, "server" => $server));
    $server->setClass('Zend_Amf_Adobe_DbInspector', '', array("config" => $default_config, "server" => $server));
    // Handle request
    echo $server->handle();
    ?>
    Looking for some help!! Thanks in advance..............

    Please elaborate.
    I tried visitng http://www.accurateoptics.in/endpoint.php
    but "page not found " returned
    However, i also tried visitng "http://www.accurateoptics.in/gateway.php"
    it shows me this echo result on page " Zend Amf Endpoint ".
    so, if i m reaching to this place that means my gateway.php and amf-config.ini is fine.
    the problem is somewhere else in any of these three files.

  • Submit stmnt problem

    Hi All,
    Am encountering a strange problem with submit statement.
    am calling   submit zxxxx ......exporting list to memory and return stmnt in my prog..,, zxxx is a program which creates invoice taking sales order as input and am displaying both sales order and invoice in the alv output.
    now if i set the break point in the program and execute the program , i can see both sales order and invoice created in the alv output ..
    The problem is ..,if i dont set the break point and execute .. i can only see sales order in the output but not invoice .. but if check the document flow in the sales order the invoice is still created for the respective sales order.
    pls suggest the alternatives...

    It might be due to the fact that invoice is number not available at the time creating list in background process because update work process is running on asynchronous mode in that program execution.
    In your submit program before updating invoice on the list and after invoice creation use "COMMIT WORK AND WAIT"...which will ensure that program control returns to main program after all update work process finished...
    Thanks.

  • BEx 7.0: Direct Input - Problem - []

    Hi Experts,
    there is another small problem while using the SAP query designer 7.0.
    I want to qualify a query attribute by using direct input because there are no valid master data on our developing system.
    Also i am not able to load the master data on the developing system.
    So i type in the direct input box:
    EX![COMPANY]
    The result after hitting the submit button is the following:
    EX!COMPANY
    Do i have to mask the [] ?
    Or any other ideas?
    Thanks guys.
    Florian
    Edited by: Florian Seeger on Oct 5, 2010 1:52 PM

    Hi Mario,
    You need to use text element for this.
    Run the query, click on some cell which doesnt have query result(the variable values would be displayed in this cell), go to the design item text element in the design toolbar.
    Double click on the text element. Go to filters table. Check all the filter checkboxes
    Click on the design mode(A icon) to go back to the analysis mode.
    Now the input variable values would be displayed.
    To go to design mode either you can use BEX design toolbar or go to BEx Analyzer menu --->Design toolbar --->Text element.
    Hope this helps,
    Best regards,
    Sunmit.

  • PHP Contact Form Problem

    Hi all,
    I'm trying to use a php Contact form and it's throwing up an error even before I click submit. As a newbie to PHP I don't really know where I am going wrong.
    Here's the link to the contact form.
    http://www.thesketchcollective.co.uk/clients/form-example/myform1.php
    Secondly, I would also like the form to send an email as well as send the info to CSV format. It currently just sends it to a CSV.
    Any help would be appreciated.
    Cheers
    Tom

    <?php
    if($_POST['formSubmit'] == "Submit")
    $errorMessage = "";
    if(empty($_POST['formMovie']))
    $errorMessage .= "<li>You forgot to enter a movie!</li>";
    if(empty($_POST['formName']))
    $errorMessage .= "<li>You forgot to enter a name!</li>";
    $varMovie = $_POST['formMovie'];
    $varName = $_POST['formName'];
    if(empty($errorMessage))
    $fs = fopen("mydata.csv","a");
    fwrite($fs,$varName . ", " . $varMovie . "\n");
    fclose($fs);
    header("Location: thankyou.html");
    exit;
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>My Form</title>
    </head>
    <body>
    <?php
    if(!empty($errorMessage))
    echo("<p>There was an error with your form:</p>\n");
    echo("<ul>" . $errorMessage . "</ul>\n");
    ?>
    <form action="myform1.php" method="post">
    <p>
    What is your favorite movie?<br>
    <input type="text" name="formMovie" maxlength="50" value="<?=$varMovie;?>" />
    </p>
    <p>
    What is your name?<br>
    <input type="text" name="formName" maxlength="50" value="<?=$varName;?>" />
    </p>
    <input type="submit" name="formSubmit" value="Submit" />
    </form>
    </body>
    </html>

  • PHP contact form problems

    I've tried editing my contact form in a way that I could edit it. But, recently I've tried replacing the color behind my submit button. Instead the images I placed behind the text boxes end up being placed behind the submit button. If you could help me figure this out, that would be great Also if you have the chance, could you tell me how to get rid of the message area boxes' color and change it to transparent... and help me place an image behind it to replace the color. Thanks
    <?php
    //If the form is submitted
    if(isset($_POST['submit'])) {
    //Check to make sure that the name field is not empty
    if(trim($_POST['contactname']) == '') {
    $hasError = true;
    } else {
    $name = trim($_POST['contactname']);
    //Check to make sure that the subject field is not empty
    if(trim($_POST['subject']) == '') {
    $hasError = true;
    } else {
    $subject = trim($_POST['subject']);
    //Check to make sure sure that a valid email address is submitted
    if(trim($_POST['email']) == '') {
    $hasError = true;
    } else if (!eregi("^[A-Z0-9.%-]@[A-Z0-9.%-].[A-Z]{2,4}$", trim($_POST['email']))) {
    $hasError = true;
    } else {
    $email = trim($_POST['email']);
    //Check to make sure comments were entered
    if(trim($_POST['message']) == '') {
    $hasError = true;
    } else {
    if(function_exists('stripslashes')) {
    $comments = stripslashes(trim($_POST['message']));
    } else {
    $comments = trim($_POST['message']);
    //If there is no error, send the email
    if(!isset($hasError)) {
    $emailTo = '[email protected]'; //Put your own email address here
    $body = "Name: $name
    Email: $email
    Subject: $subject
    Comments:
    $comments";
    $headers = 'From: Barca Graphics Contact form <'.$emailTo.'>' . "
    " . 'Reply-To: ' . $email;
    mail($emailTo, $subject, $body, $headers);
    $emailSent = true;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>PHP Contact Form with JQuery Validation</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
    <script src="jquery.validate.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("#contactform").validate();
    </script>
    <style type="text/css">
    body {
    font-family:Arial, Tahoma, sans-serif ;
    #contact-wrapper {
    width:429px;
    border:;
    background:transparent ;
    padding:;
    #contact-wrapper div {
    clear:both;
    margin:1em 0;
    #contact-wrapper label {
    display:block;
    float:none;
    font-size:16px;
    width:auto;
    form#contactform input {
    background-color:transparent;;
    background-image:url('http://submitpage.webege.com/images/shapeimage_2.png');
    border-width:0px;
    padding:6px;
    padding-bottom:10px;
    font-size:16px;
    color:none;
    form#contactform textarea {
    font-family:Arial, Tahoma, Helvetica, sans-serif;
    font-size:100%;
    padding:0.6em 0.5em 0.7em;
    border-color:transparent;;
    border-style:transparent;
    border-width:1px;
    </style>
    </head>
    <body>
    <form method="post" action="<?php echo $SERVER['PHPSELF']; ?>" id="contactform">
    <label for="name"></label>
    <input type="text" size="50" name="contactname" id="contactname" value="Name" class="required"/>
    <label for="email"></label>
    <input type="text" size="50" name="email" id="email" value="Email" />
    <label for="subject"></label>
    <input type="text" size="50" name="subject" id="subject" value="Subject" />
    <label for="message"></label>
    <textarea rows="5" cols="50" name="message" id="message" class="required"></textarea>
    <input type="submit" value="Send" name="submit" />
    </form>
    <?php if(isset($hasError)) { //If errors are found ?>
    Please check if you've filled all the fields with valid information. Thank you.
    <?php } ?>
    <?php if(isset($emailSent) && $emailSent == true) { //If email is sent ?>
    Email Successfully Sent!
    Thank you <?php echo $name;?> for contacting Barca Graphics.
    <?php } ?>
    </body>
    </html>

    ereg() has been deprecated, it is recommended that you dont use it.
    You want to look at this
    http://www.php.net/manual/en/function.preg-match.php
    Within this page I found this:
    If you need to check for .com.br and .com.au and .uk and all the other crazy domain endings i found the following expression works well if you want to validate an email address. Its quite generous in what it will allow
    <?php
            $email_address = "phil.taylor@a_domain.tv";
         if (preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email_address)) {
             return "E-mail address";        
    ?>

  • Batch input problem in SM35

    Dear all,
    I am uploading the bank statements using manual bank statements through Z transaction, Once uploaded system is generating the batch input session for the same.
    When i run the batch input session system not clearing outgoing payment automatically based on the assignment field, as i have alreday mentioned the same assignment while posting the document and in the excel file.
    I am getting the following message while running the batch input session.
    No batch input data for screen SAPDF05X 3100
    Message no. 00344
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.
    System Response
    None.
    Procedure
    For 1: Either re-create the session or process it in expert mode. Correct the batch input program.
    For 2. It is very difficult to analyze this problem, particularly in the case that the screen sequence or the display-only options of fields differ according to whether the transaction is being processed in the background or as an online dialog. It could also be that this kind of transaction cannot run with batch input.
    For 3: Have the creator of the session process it. If no error occurs now, then this is a program with user-specific Customizing.
    Please let me know solution for the same.
    Regards,
    Anand

    Hi,
    This may not be a solution but may help you to isolate the problem
    a) Are you able to load the bank statement for other banks without error ?
    b) Try for the same bank in a different system .
    c) If it is working for different bank then check the file format is the same for both the banks.
    d) If it is working in different system check the ABAP code for any changes between the system,
    e) Are you getting this message for all the line items or only for some line items ?
    Regards
    K.R

  • Mouse & keyboard input problem.

    Hello there.
    I have recently started using a Mac Mini for music live performance.
    I am using programs like Ableton Live & Apple's MainStage.
    I am experiencing problems with the input coming from the mouse and keyboard. After startup everything works perfectly fine. I am using Apple's Magic Mouse and Apple's wireless bluetooth keyboard now, but I have also experienced the same with a simple cheap usb mouse.
    Let me explain, what happens:
    From time to time, the input coming from both the keyboard and the mouse stops. The keyboards is not responding at all. The mouse can move the coursor around, but the buttons are not responding. When I for example move the coursor on an icon in the dock, the name does not pop up, as it would do normally.
    From that point my rescue is a restart (hard one) or a screen sharing login from another mac on the network to do a normal restart.
    Is anyone experiencing something similar? Any tips to help me out?

    We are running Ableton Live for running backtracks.
    Here is the part of the log. There is more log about the system startup, if needed.
    18/06/14 16:27:54,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:27:54,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:33:05,371
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:17,000
    kernel[0]
    [AppleMultitouchDevice::willTerminate] entered
    18/06/14 16:35:17,000
    kernel[0]
    [AppleMultitouchDevice::stop] entered
    18/06/14 16:35:17,000
    kernel[0]
    [0xffffff8018afd600][free]()
    18/06/14 16:35:17,804
    loginwindow[68]
    Preferred Localizations total: 1 contents (  English )
    18/06/14 16:35:24,412
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:24,428
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:35:59,916
    digest-service[514]
    label: default
    18/06/14 16:35:59,916
    digest-service[514]
    dbname: od:/Local/Default
    18/06/14 16:35:59,916
    digest-service[514]
    mkey_file: /var/db/krb5kdc/m-key
    18/06/14 16:35:59,916
    digest-service[514]
    acl_file: /var/db/krb5kdc/kadmind.acl
    18/06/14 16:35:59,917
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:35:59,918
    digest-service[514]
    digest-request: netr probe 0
    18/06/14 16:35:59,919
    digest-service[514]
    digest-request: init request
    18/06/14 16:35:59,922
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,010
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,010
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,013
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,175
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,175
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,178
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,204
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,204
    digest-service[514]
    digest-request: init request
    18/06/14 16:36:00,207
    digest-service[514]
    digest-request: init return domain: DUNES-MAC-MINI server: DUNES-MAC-MINI indomain was: <NULL>
    18/06/14 16:36:00,210
    digest-service[514]
    digest-request: uid=0
    18/06/14 16:36:00,212
    digest-service[514]
    digest-request: od failed with 2 proto=ntlmv2
    18/06/14 16:36:00,212
    digest-service[514]
    digest-request: user=\GUEST
    18/06/14 16:36:00,215
    digest-service[514]
    digest-request: kdc failed with -1765328234 proto=unknown
    18/06/14 16:36:00,215
    digest-service[514]
    digest-request guest: ok user=DUNES-MAC-MINI\GUEST proto=ntlmv2 flags: NEG_KEYEX, ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM2, NEG_NTLM, NEG_TARGET, NEG_UNICODE
    18/06/14 16:36:01,567
    kdc[72]
    Got a canonicalize request for a LKDC realm from 192.168.1.101:51637
    18/06/14 16:36:01,567
    kdc[72]
    LKDC referral to the real LKDC realm name
    18/06/14 16:36:01,570
    kdc[72]
    BUG in libdispatch client: kevent[EVFILT_READ] delete: "Bad file descriptor" - 0x9
    18/06/14 16:36:01,698
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51638 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,702
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51638 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,703
    kdc[72]
    Need to use PA-ENC-TIMESTAMP/PA-PK-AS-REQ
    18/06/14 16:36:01,713
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51639 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,717
    kdc[72]
    AS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51639 for krbtgt/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A29 43F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,718
    kdc[72]
    Client sent patypes: ENC-TS
    18/06/14 16:36:01,718
    kdc[72]
    ENC-TS pre-authentication succeeded -- dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1
    18/06/14 16:36:01,719
    kdc[72]
    Client supported enctypes: aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1, arcfour-hmac-md5, using aes256-cts-hmac-sha1-96/aes256-cts-hmac-sha1-96
    18/06/14 16:36:01,719
    kdc[72]
    Requested flags: canonicalize
    18/06/14 16:36:01,867
    kdc[72]
    TGS-REQ dune@LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1 from 192.168.1.101:51640 for vnc/LKDC:SHA1.D06C7456A2943F6790428F4FC70E766BF0D80FB1@LKDC:SHA1.D06C7456A2943F 6790428F4FC70E766BF0D80FB1 [canonicalize]
    18/06/14 16:36:01,887
    screensharingd[516]
    Authentication: SUCCEEDED :: User Name: dune :: Viewer Address: 192.168.1.101 :: Type: Kerberos
    18/06/14 16:36:27,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:36:27,000
    kernel[0]
    Sandbox: ntpd(375) deny file-read-data /private/var/run/resolv.conf
    18/06/14 16:36:29,000
    kernel[0]
    [BNBMouseDevice::init][80.14] init is complete
    18/06/14 16:36:29,000
    kernel[0]
    [BNBMouseDevice::handleStart][80.14] returning 1
    18/06/14 16:36:29,000
    kernel[0]
    [AppleMultitouchHIDEventDriver::start] entered
    18/06/14 16:36:29,883
    loginwindow[68]
    Preferred Localizations total: 1 contents (
        English
    18/06/14 16:36:30,000
    kernel[0]
    [AppleMultitouchDevice::start] entered
    18/06/14 16:37:08,196
    WindowServer[103]
    Warning: Program "Live" posted a mouse-down, blocking hardware events, but did no further mouse activity
    18/06/14 16:37:18,214
    Console[524]
    setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    18/06/14 16:39:41,000
    kernel[0]
    process ScreensharingAge[517] caught causing excessive wakeups. EXC_RESOURCE supressed due to audio playback
    18/06/14 16:39:59,731
    com.apple.IconServicesAgent[249]
    main Failed to composit image for binding VariantBinding [0x3b1] flags: 0x8 binding: FileInfoBinding [0x2bb] - extension: log, UTI: com.apple.log, fileType: ????.
    18/06/14 16:39:59,732
    quicklookd[521]
    Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x403] flags: 0x8 binding: FileInfoBinding [0x303] - extension: log, UTI: com.apple.log, fileType: ???? request size:48 scale: 1
    18/06/14 16:41:13,236
    MainStage[448]
    NIAUCocoaApplicationEvents: unregistration (0x3bdf2ca0)
    18/06/14 16:41:15,842
    WindowServer[103]
    _CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
    18/06/14 16:41:15,849
    WindowServer[103]
    _CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
    18/06/14 16:41:27,386
    com.apple.SecurityServer[15]
    Session 100017 created
    18/06/14 16:41:27,403
    com.apple.SecurityServer[15]
    Killing auth hosts
    18/06/14 16:41:27,403
    com.apple.SecurityServer[15]
    Session 100016 destroyed
    18/06/14 16:41:27,544
    com.apple.IconServicesAgent[249]
    main Failed to composit image for binding VariantBinding [0x3b3] flags: 0x8 binding: FileInfoBinding [0x4b3] - extension: caf, UTI: com.apple.coreaudio-format, fileType: ????.
    18/06/14 16:41:27,544
    quicklookd[521]
    Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x803] flags: 0x8 binding: FileInfoBinding [0x703] - extension: caf, UTI: com.apple.coreaudio-format, fileType: ???? request size:16 scale: 1
    18/06/14 16:41:28,451
    Console[547]
    setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    18/06/14 16:41:41,991
    Console[547]
    Marker - 18 Jun 2014 16:41:41
    18/06/14 16:41:44,520
    Console[547]
    Marker - 18 Jun 2014 16:41:44
    18/06/14 16:42:05,640
    com.apple.launchd.peruser.501[174]
    (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
    18/06/14 16:42:05,689
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,690
    WindowServer[103]
    CGXGetConnectionProperty: Invalid connection 49155
    18/06/14 16:42:05,705
    com.apple.launchd.peruser.501[174]
    (com.apple.universalaccessAuthWarn[280]) Exited: Killed: 9
    18/06/14 16:42:05,705
    com.apple.launchd.peruser.501[174]
    (com.apple.AirPlayUIAgent[316]) Exited: Killed: 9
    18/06/14 16:42:05,707
    com.apple.launchd[1]
    (com.apple.ShareKitHelper[255]) Exited: Killed: 9
    18/06/14 16:42:05,709
    com.apple.launchd[1]
    (com.apple.internetaccounts[246]) Exited: Killed: 9
    18/06/14 16:42:05,722
    com.apple.launchd.peruser.501[174]
    ([0x0-0x1b01b].com.apple.AppleSpell[305]) Exited: Killed: 9
    18/06/14 16:42:05,723
    com.apple.launchd.peruser.501[174]
    (com.apple.gamed[215]) Exited: Killed: 9
    18/06/14 16:42:15,741
    loginwindow[68]
    ERROR | -[ApplicationManager quitPrivateProcesses] | Private process did not quit
    18/06/14 16:42:15,773
    sessionlogoutd[560]
    sessionlogoutd Launched
    18/06/14 16:42:15,779
    sessionlogoutd[560]
    DEAD_PROCESS: 68 console
    18/06/14 16:42:15,807
    airportd[90]
    _doAutoJoin: Already associated to “DuneLive2014”. Bailing on auto-join.
    18/06/14 16:42:15,812
    shutdown[561]
    reboot by _softwareupdate:
    18/06/14 16:42:15,813
    shutdown[561]
    SHUTDOWN_TIME: 1403102535 812435

Maybe you are looking for

  • Why won't my mini dp to hdmi adapter work with my hdtv?

    I recently bought a 2011 Macbook Pro 13" notebook, and the girl who sold it to me also sold me the Moshi mini display-port to HDMI adapter. She said all I would need to hook my laptop up to my Vizio LCD hdtv was that adapter and a regular HDMI cable.

  • Embedding BI Publisher output in OAF Page

    Hi All, I want to embed the BI Publisher output in one of the regions on OAF page. I was getting error Error invoking 'set_xslt_locale':'java.lang.IllegalAccessError: tried to access class oracle.apps.fnd.i18n.common.text.DigitList from class oracle.

  • No place to enter login name and password

    After recent update there is text boxes to enter user name and password for signing in with the skype name but they are read only. Even mouise can not point to any of those controls.What is going on?I am using skype long time and this is the first I

  • How to get list of all JSF beans

    How can one get a list of all JSF beans? To get a particular JSF bean one does    static public Object findJSFBean(String beanName)       FacesContext fc = FacesContext.getCurrentInstance();       if (fc== null) return null;       ELContext elContext

  • PDF repeating first page

    We have a printer in the system that is connected to about 5 public computers. It seems to work fine except for when printing PDFs from Windows 7 computers. It will print the first page multiple times, sometimes it won't stop until the printer is man