Building an active PHP page in DW

I have 6 months DW experience, and plenty of database
experience, but not really much WEB database
experience. I was wondering how difficult of project it would
be to convert my small store to a PHP
database-driven/active site, with the following constraints:
- less than 100 products
- one image field (url reference)
- one PayPal button per product (PayPal code from their
website) - can I imbed this HTML into a PHP database field?
I can define the database records; create the PayPal buttons,
and set DW up to link to the database, I'm pretty sure.
Designing a page to "actively" build content by searching the
database against certain criteria, I get a little fuzzy on.
I guess from non-Web experience, that just amounts to a
database query and display, though, using PHP.
Any pointers, suggestions, or tutorials would be appreciated,
before I decide to dive into this.
I'm wanting to convert www.pulversbriar.com from a
static/HTML site, into a more interesting and flexible
dynamic site, as the inventory levels grow.
thanks
steve

sbell2200 wrote:
> I was wondering how difficult of project it would be to
convert
> my small store to a PHP
> database-driven/active site, with the following
constraints:
>
> - less than 100 products
> - one image field (url reference)
> - one PayPal button per product (PayPal code from their
website) - can I imbed
> this HTML into a PHP database field?
It sounds a very simple project. I don't know how PayPal
buttons work,
but storing the code for a related product and incorporating
it directly
into the HTML is a trivial task with PHP. However, don't
store any
images in the database. That gets messy, and is more
complicated to code.
> Designing a page to "actively" build content by
searching the database against
> certain criteria, I get a little fuzzy on.
> I guess from non-Web experience, that just amounts to a
database query and
> display, though, using PHP.
Precisely.
> Any pointers, suggestions, or tutorials would be
appreciated, before I decide
> to dive into this.
If you are new to working with PHP and Dreamweaver, you might
find it
helpful to take a look at my book "Foundation PHP for
Dreamweaver 8". It
covers all the points you raise. More details on my site:
http://foundationphp.com/dreamweaver8/
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/

Similar Messages

  • 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>

  • Simple Question: Building a basic results page

    I’ve followed the Dreamweaver CS3 help file:
    ”Building a basic results page” in building a simple
    search and results page set for a very simple MySQL query. After
    restarting multiple times, I’m not getting a results page,
    but rather “HTTP 500” …no page to display of
    course. After extensive web searches for possible help file errors,
    suggestions, my errors, etc., I’m lost. I have programming
    experience but not with Dreamweaver.
    Thanks…The Nuch

    > but rather
    > ?HTTP 500?
    What is the exact url address in the browser when you get the
    http 500
    error.
    in your form, this is the action:
    <form action="/member_result_test2.php"
    That is a site root relative path, it starts with a leading
    /slash.
    are you testing this at a local host address like this,
    http://localhost/mysite/myform.html
    if yes, do NOT use site root relative paths. they won't work
    for local
    testing.
    When you submit the form, it's going here to find the
    processing script:
    http://localhost/member_result_test2.php
    instead of
    http://localhost/mysite/member_result_test2.php
    change the action path to a document relative path.
    (you can use site root relative paths locally if you set up a
    virtual host
    name so you can use something like
    http://mysite.local as a local
    testing
    url)
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Combining PHP Pages With HTML Pages.

    Hi,
    I started building my site in Dreamweaver CS4 using HTML pages, not knowing until now that any pages with interactivity need to be php.
    If my site has seven pages, can four of them be HTML, and the rest PHP? If so, are there any special considerations I have to take into account? Is there anything special that would have to be done at any time during the process of creating the PHP pages, uploading to a web host, etc?
    If not, is there a way to convert the HTML pages directly to PHP, or do I have to basically start from scratch?
    Thank you.

    Better to be consistent.  You CAN have php,  htm, html and shtml pages in your site, but this could cause a server conflict if you accidentally upload more than one index page to the same folder.
    Simply rename your ***.htm pages to ***.php (F2).
    Remove ***.htm pages from testing and remote servers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Flash video in php page

    Hi
    i insert flash video to php page and it's ok but.
    i want to ask if i could i insert any video to it liek avi or
    mpg or any and it will be converted when upload automatically
    thanks in advance.

    macnux wrote:
    > Hi
    > i insert flash video to php page and it's ok but.
    > i want to ask if i could i insert any video to it liek
    avi or mpg or any and it will be converted when upload
    automatically
    >
    > thanks in advance.
    >
    It can be done, since youtube does it. But that requires
    heavy-duty programming and I suspect some
    special server components (maybe Flash Server must be
    installed too or something).
    In any case that's not something you can do with Dreamweaver
    or without a thorough knowledge of
    server-side programming.
    An alternative is to create a swf file in Flash that will
    import linked media. You can link
    quicktime videos dynamically and play them in the swf.
    I'm not sure what other video formats are supported. You
    might want to look into the Flash Media
    Player component.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Flash problems on PHP pages - dreamweaver

    hi, i'm building a site that's basically a bunch of php-pages
    (header, content, menu...) that are loaded into a index.php page
    using "require" and javascript etc. anyways, many of the pages will
    include flash files and this is causing some problem. have been
    doing this kind of stuff before, but the flash code has changed
    with the new version of dreamweaver. and i'm having trouble
    figuring out what the problem is.
    the index page is at
    http://www.onion-berlin.com/test
    the logo animation (flash) sits on a page called header.php
    and works like it should
    but the mustavuori.php page in the content div isn't working.
    the text is there, but the flash doesn't show.
    the flash icon on the index.php page (in dw) looks broken,
    but on mustavuori.php not.
    what's wrong?
    i put the
    <script src="Scripts/swfobject_modified.js"
    type="text/javascript"></script>
    in the head-section of the index page,
    but where should this stuff go:
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>

    and yeah, don't pay attetion to the news section. the links
    & pages are not yet in place...

  • I do not view NPD BU under Category Tab in Activity search page

    Hi there,
    I'm using Agile PLM 6.1.1.0_Release_12
    I'm not able to view NPD BU under Category Tab in Activity search page.
    1) I created 2 NPD BU
    - Italy
    - International
    2) I created some Activity template with Italy and International as BU.
    The issue is that when I search Activity Template by Category system does not display any results.
    Moreover I'm not able to add an activity template in a project template.
    Could you kindly explain me why? I hope my question is clear.
    Thank you very much.
    Best regards,
    Stefano

    I tried this on my local 6.1.1 build and it appears to work.   Go ahead and submit an SR so support can investigate. 

  • After upgrading to FF 3.6.12 I can no longer view PHP pages from my hard drive.

    After upgrading to version 3.6.12 I can no longer open PHP web pages from my hard drive. When I create or edit web pages I view them from my hard drive first before uploading, as many webmasters do to look for errors before taking them live.
    I can view PHP pages online, but from my hard drive it just spawns endless empty tabs. Instead of just opening the page it asked me what to open it with, thinking the PHP web page is a script.
    It was working fine before the upgrade. I had a page open that I wanted to edit, which it reopened when my browser restarted.
    Then I edited the page. All I did was add a link to it. Then I hit the refresh button to see the change and instead of reloading the page, FF asked me what to do with the PHP script, prompting me to save it or choose what program to open it with.
    I selected to view it with FF and it just spawned endless tabs. They wouldn't stop. Had to shut down FF and it probably had 40 tabs opened with nothing on them. I tried other PHP pages from my hard drive that opened fine before, but it did the same thing with them.
    I tried finding help online and I see others have had the same problem, but no solution was offered that worked. I tried rebooting, same story, it wants to know what to do with the PHP script.
    I'm being forced to use another browser, so I'm going to go download Chrome now. If this probably isn't fixed soon I'll simply give up on FF. It's not worth the aggravation. I can't tell you how much TIME I've wasted today -- HOURS.
    Very disappointed.

    Thanks for the reply. It doesn't have to process the php, it just has to show the HTML content. It did that just fine before the last upgrade but won't now.
    I've seen that page you referenced: http://kb.mozillazine.org/File_types_and_download_actions.
    It doesn't help. The things it says to look for aren't there for me, specifically:
    browser.download.pluginOverrideTypes
    plugin.disable_full_page_plugin_for_types
    I followed the rest of the instructions but it didn't help.
    I did get it to quit opening tabs, instead it prompts me what it should do with the file every time now. What it should do, and used to do, is open the php page and display the HTML content.
    Any other ideas?

  • Passing values from applet using POST method to PHP page

    Hello there ;)
    I realy need a help here.. I`ve been working all day on sending mail from applet. I didn`t succeed bcs of the security restrictions.
    So I decided just to pass arguments into PHP page, which process them and send e-mail to me.
    So here is the problem.. I need to send String variables througth POST into my php page. Now I`m using GET method, but I need more than 4000 characters.
    My actual solution is:
      URL url = new URL("http://127.0.0.1/index.php?name=" + name + "&message=" + message);
    this.getAppletContext().showDocument(url,"_self");I really need to rewrite it into POST. Would you be so kind and write few lines example [applet + php code]? I`ve already searched, googled, etc.. Pls don`t copy links to other forums here, probably I`ve read it.
    Thanx in advance to all :)

    hi!
    i`ve got some news about my applet.. so take this applet code:
    public class Apletik extends JApplet {
        public void init() { }
        public void start()
        try
          String aLine; // only if reading response
          String  parametersAsString = "msg=ahoj&to=world";
          byte[] parameterAsBytes = parametersAsString.getBytes();
          // send parameters to server
          URL url = this.getCodeBase();
          url = new URL(url + "spracuj.php");
          URLConnection con = url.openConnection();
          con.setDoOutput(true);
          con.setDoInput(true); // only if reading response
          con.setUseCaches(false);
          con.setRequestProperty("Content=length", String.valueOf(parameterAsBytes.length));
          OutputStream oStream = con.getOutputStream();
          oStream.write(parameterAsBytes);
          oStream.flush();
          String line="";
          BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
          while ((aLine = in.readLine()) != null)
           JOptionPane.showMessageDialog(null, aLine);      
           if(aLine.equals("")) break;
          in.close();      
          oStream.close();
        catch (Exception ex)
          JOptionPane.showMessageDialog(null, ex.toString());
    }here is code of spracuj.php which is on server:
    <?php
      if(isset($_POST['msg']))
        echo('hurray!');
    ?>it has only 1 problem.. when i test it on my localhost, everything seems to be all right. but when i post it to my server, i got IOException HTTP 400 error code :( where is the problem? please help me, i`m so close :D thanx

  • How to use a session, created in a jsp page, in a php page

    Hello, forgive me for the newbie question.
    Here is my problem:
    I want to have a jsp page create a session, set some session variables and then redirect to a php page which will access those same session variables.
    I have the redirection worked out, but I can't seem to find out how to use the jsp session in my php script.
    Is this possible at all, and if so, how does it work?

    Note that javascript runs on the client side, and JSP runs on the server. JSP and the session objects are NOT available to javascript in reaction to the user.
    If this function is called only when the page is first created, not when the user interacts with the page, or if you want that value to be constant with respect to the javascript, then you can do this:
    <%
      String someValue = (String)session.getAttribute("theAttributeName");
    %>
    <script type="text/javascript">
         Calendar.setup({inputField:"f_date_dfFirstPmtDate",
                                              button:"f_trigger_dfFirstPmtDate",
                                             singleClick:true,
                                              ifFormat:<%=someVale%>});
    </script>

  • Error while creating activities from Account application (Activity tab page

    Hi Experts,
                       We are using CRM 5.0 with PCUI ( EP 7.0 version). We are getting  below error when try to create activities from Account application in PCUI ( from activity tab page):
    Error : Activity contains error.
    Diagnosis
    This transaction has errors.
    Procedure
    To correct the errors, go to the maintenance interface of the transaction.
    To navigate to there, use the link to the account application
    Pls suggest how to proceed with this error & helpful solutions would be rewrded generously.
    Regards,
    Basavaraj Patil

    Hi Experts,
    We are getting this error when try to create Activity from Account application in PCUI. But the same thing is working fine in at GUI level & actions profile assigned to Activity transaction is also working fine at GUI level. But in PCUIit is throwing this below error.
    Diagnosis
    You have attempted to create a follow-up transaction for an incorrect transction 2000764. This is not possible. You can only create follow-up transactions for error-free transactions.
    System Response
    The follow-up transaction is not created.
    Procedure
    Correct the errors in the source transaction 2000764. The error messages resulting from processing the error can be read in the application log in the source transaction.
    Pls suggest solution for this.
    Thanks in Advance.
    Regards,
    Basavaraj Patil

  • Footer displayed inaccurately in Dreamweaver CS4 php page

    Hi,
    I recently upgraded from Dreamweaver 8 to Dreamweaver CS4. Our organization site uses mostly php pages. When I attempt to open these pages in Dreamweaver CS4 the footer menu bar displays innacurately down through the center of the page and won't allow any edits as it acts like a top layer or something. Usually it acts as a menu bar on the top of any page on our website.
    As it should appear from an online screen shot: You'll notice the orange menu bar across the top.
    A shot of the Design View in Dreamweaver CS4:  You'll see the menu options are running down the center of the page as text.
    This is the code : Can also be visited at www.axisdance.org
        <div id="footer">AXIS Dance Company &middot; 1428 Alice Street, Suite 200 &middot; Oakland, CA 94612<br />
            Phone: 510-625-0110 &middot; Fax: 510-625-0321
        </div><!--end footer-->
        <div id="navBar"><!--<a name="navigation" class="minimize"> </a><br />-->
            <!-- begin list for menu-->
            <ul id="udm" class="udm">
                <li><h2><a href="index.php">home</a></h2>
                </li>
                <li><h2><a href="about.php">about us</a></h2>
                    <ul>
                    <li><a href="about.php">About AXIS</a></li>
                    <li><a href="about_news.php">News</a></li>
                    <li><a href="about_mediaKit.php">Media Kit</a></li>
                    <li><a href="about_dancers.php">Dancers</a></li>
                    <li><a href="about_staff.php">Board & Staff</a></li>
                    <li><a href="about_jobs.php">Jobs & Auditions</a>
                    <ul>
                        <li><a href="about_internships.php">Internships</a></li>
                        </ul>
                    <li><a href="about_faq.php">FAQ</a></li>
                    <li><a href="about_contact.php">Contact Us</a>
                        <ul>
                        <li><a href="about_contact_directions.php">Directions</a></li>
                        </ul>                   
                    </li>
                    </ul>
                </li>
                <li><h2><a href="performance.php">performances</a></h2>
                    <ul>
                    <li><a href="performance.php">Performance Calendar</a></li>
                    <li><a href="performance_repertory.php">Repertory Clips </a></li>
                    <li><a href="performance_gallery.php">Image Gallery</a></li>
                    <li><a href="performance_reviews.php">Reviews</a></li>
                    <li><a href="performance_booking.php">Booking AXIS</a></li>
                    <li><a href="performance_collaboration.php">Collaborating Artists</a></li>
                    </ul>
                </li>
                <li><h2><a href="education.php">education</a></h2>
                    <ul>
                    <li><a href="education.php">About Education </a></li>
                    <ul>
                        <li><a href="kids.php">Dance Access/KIDS!</a></li>
                        <li><a href="Adults.php">Dance Access (Adults)</a></li>
                        </ul>
                    <li><a href="education_danceAccess.php">Class Schedule</a></li>
                    <li><a href="education_hiring.php">Booking Dance Access</a></li>
                    <li><a href="education_summerIntensive.php">Summer Intensive</a></li>
                    <li><a href="education_resources.php">Resources</a>
                        <ul>
                        <li><a href="education_resources_videos.php">Media</a></li>
                        <li><a href="education_resources_articles.php">Essays & Articles</a></li>
                        <li><a href="assets/teachersGuide.pdf">Teacher's Guide (PDF)</a></li>
                        </ul>                   
                    </li>
                    <li><a href="education_likeUs.php">Companies Like Us</a></li>
                    </ul>
                </li>       
                <li><h2><a href="support.php"> support </a></h2>
                    <ul>
                    <li> <a href="support.php"> Ways to Support</a></li>
                    <li><a href="support_volunteering.php">Volunteering</a></li>                   
                    <li><a href="support_mailingList.php">Join Mailing List</a></li>                   
                    <li><a href="support_store.php">AXIS Store</a></li>                   
                    <li><a href="support_funders.php">Funders &amp; Donors </a></li>                   
                    <li><a href="support_webSupporters.php">Web Supporters</a></li>                   
                    </ul>
                </li>
            </ul>
            <img src="images/shim.gif" width="800" height="1" border="0" alt="navigation bar" /><br />
        </div><!--end navbar-->
    </div><!--end center-->
    <div id="copy">
        <div id="right">&copy; 1999-2010. AXIS Dance Company  <br>
            <a href="http://www.facebook.com/pages/AXIS-Dance-Company/56899952604?ref=ts" target="_blank"></a> <a href="http://www.youtube.com/user/AXISDanceComp" target="_blank"></a> <a href="http://www.axisdance.org/support_mailingList.php" target="_blank"></a><br />
        </div>
        <div id="powered"> </div>
        <div class="clear"> </div>
    </div><!--end copy-->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10598516-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>
    This seems like a simple solution but I'm just not sure what it would be.
    Thanks

    The live view or preview functions do not work and lead to the error: "Not Found, the requested URL/html/index.php was not found on this server.'   This is another issue that I don't understand.
    Unfortunately, I did not develop this website and have a minimal knowledge of html and Dreamweaver.  I'm not sure if I can answer the question about which menu system we're using - would seeing the code of the footer help?   I'll paste below in case.  
    And just to be clear, the problem only occurs in editing in Dreamweaver, but when uploaded to our server it appears correctly.
    Thanks for your help!
        <div id="footer">AXIS Dance Company &middot; 1428 Alice Street, Suite 200 &middot; Oakland, CA 94612<br />
            Phone: 510-625-0110 &middot; Fax: 510-625-0321
        </div><!--end footer-->
        <div id="navBar"><!--<a name="navigation" class="minimize"> </a><br />-->
            <!-- begin list for menu-->
            <ul id="udm" class="udm">
                <li><h2><a href="index.php">home</a></h2>
                </li>
                <li><h2><a href="about.php">about us</a></h2>
                    <ul>
                    <li><a href="about.php">About AXIS</a></li>
                    <li><a href="about_news.php">News</a></li>
                    <li><a href="about_mediaKit.php">Media Kit</a></li>
                    <li><a href="about_dancers.php">Dancers</a></li>
                    <li><a href="about_staff.php">Board & Staff</a></li>
                    <li><a href="about_jobs.php">Jobs & Auditions</a>
                    <ul>
                        <li><a href="about_internships.php">Internships</a></li>
                        </ul>
                    <li><a href="about_faq.php">FAQ</a></li>
                    <li><a href="about_contact.php">Contact Us</a>
                        <ul>
                        <li><a href="about_contact_directions.php">Directions</a></li>
                        </ul>                   
                    </li>
                    </ul>
                </li>
                <li><h2><a href="performance.php">performances</a></h2>
                    <ul>
                    <li><a href="performance.php">Performance Calendar</a></li>
                    <li><a href="performance_repertory.php">Repertory Clips </a></li>
                    <li><a href="performance_gallery.php">Image Gallery</a></li>
                    <li><a href="performance_reviews.php">Reviews</a></li>
                    <li><a href="performance_booking.php">Booking AXIS</a></li>
                    <li><a href="performance_collaboration.php">Collaborating Artists</a></li>
                    </ul>
                </li>
                <li><h2><a href="education.php">education</a></h2>
                    <ul>
                    <li><a href="education.php">About Education </a></li>
                    <ul>
                        <li><a href="kids.php">Dance Access/KIDS!</a></li>
                        <li><a href="Adults.php">Dance Access (Adults)</a></li>
                        </ul>
                    <li><a href="education_danceAccess.php">Class Schedule</a></li>
                    <li><a href="education_hiring.php">Booking Dance Access</a></li>
                    <li><a href="education_summerIntensive.php">Summer Intensive</a></li>
                    <li><a href="education_resources.php">Resources</a>
                        <ul>
                        <li><a href="education_resources_videos.php">Media</a></li>
                        <li><a href="education_resources_articles.php">Essays & Articles</a></li>
                        <li><a href="assets/teachersGuide.pdf">Teacher's Guide (PDF)</a></li>
                        </ul>                   
                    </li>
                    <li><a href="education_likeUs.php">Companies Like Us</a></li>
                    </ul>
                </li>       
                <li><h2><a href="support.php"> support </a></h2>
                    <ul>
                    <li> <a href="support.php"> Ways to Support</a></li>
                    <li><a href="support_volunteering.php">Volunteering</a></li>                   
                    <li><a href="support_mailingList.php">Join Mailing List</a></li>                   
                    <li><a href="support_store.php">AXIS Store</a></li>                   
                    <li><a href="support_funders.php">Funders &amp; Donors </a></li>                   
                    <li><a href="support_webSupporters.php">Web Supporters</a></li>                   
                    </ul>
                </li>
            </ul>
            <img src="images/shim.gif" width="800" height="1" border="0" alt="navigation bar" /><br />
        </div><!--end navbar-->
    </div><!--end center-->
    <div id="copy">
        <div id="right">&copy; 1999-2010. AXIS Dance Company  <br>
            <a href="http://www.facebook.com/pages/AXIS-Dance-Company/56899952604?ref=ts" target="_blank"></a> <a href="http://www.youtube.com/user/AXISDanceComp" target="_blank"></a> <a href="http://www.axisdance.org/support_mailingList.php" target="_blank"></a><br />
        </div>
        <div id="powered"> </div>
        <div class="clear"> </div>
    </div><!--end copy-->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10598516-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>

  • How to get the filename of the active jsp page?

    how can i get the filename of the active jsp page?

    You could register the JSP [ages in the web.xml and then use the ServletConfig.getServletName.
    You could use the JspContex.getServletName which will return the registered name or the name of the servlet class.
    You could programmatically add a page context attribute that holds the jsp page name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • MM_XSLTransform error every time in PHP page

    When I apply an XSL Transformation to a PHP page, the page
    displays with an MM_XSLTransform error saying the XML file is not a
    valid XML document -- even though it absolutely
    is valid XML. This is totally reproducable.
    Here's a simple example:
    library.xml:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <library>
    <owner>Mister Reader</owner>
    <book>
    <isbn>1-2345-6789-0</isbn>
    <title>All About XML</title>
    <author>John Doe</author>
    <language>English</language>
    <price currency="usd">24.95</price>
    </book>
    <book>
    <isbn>9-8765-4321-0</isbn>
    <title>CSS Made Simple</title>
    <author>Jane Smith</author>
    <language>English</language>
    <price currency="usd">19.95</price>
    </book>
    </library>
    library.xsl:
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="iso-8859-1"/>
    <xsl:template match="/">
    <h1><xsl:value-of select="library/owner"/>'s
    Library</h1>
    <xsl:for-each select="library/book">
    <p><em><xsl:value-of
    select="title"/></em>
    by <xsl:value-of select="author"/>
    (ISBN <xsl:value-of select="isbn"/>)</p>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    library.php:
    <?php
    //XMLXSL Transformation class
    require_once('includes/MM_XSLTransform/MM_XSLTransform.class.php');
    ?><!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=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    $mm_xsl = new MM_XSLTransform();
    $mm_xsl->setXML("library.xml");
    $mm_xsl->setXSL("library.xsl");
    echo $mm_xsl->Transform();
    ?>
    </body>
    </html>
    When viewing the file library.php, the following error is
    displayed in the browser, followed by the raw XML:
    library.xml is not a valid XML document.
    Non-static method DOMDocument::loadXML() should not be called
    statically, assuming $this from incompatible context in file
    library.xml.
    I wonder whether there is a problem with the include file
    MM_XSLTransform, version 0.6.2. Since that include file begins with
    a "TODO" note from the programmer, I wonder whether it's not quite
    release-ready.
    Anyone else having this problem?
    Environment:
    - Testing Server on localhost
    - Windows XP Pro SP2
    - Dreamweaver 8.0.2
    - PHP 5.1.4
    - MySQL 5.0.2.1
    - PHP MyAdmin 2.8.1

    Jon9999 wrote:
    > I wonder whether there is a problem with the include
    file MM_XSLTransform,
    > version 0.6.2. Since that include file begins with a
    "TODO" note from the
    > programmer, I wonder whether it's not quite
    release-ready.
    It was release-ready. It worked fine in PHP 5.0, but changes
    in PHP
    5.1.4 caused it to break. As I understand, Adobe is preparing
    a PHP
    hotfix that solves several problems caused by the 8.0.2
    updater. It also
    fixes this one.
    In the meantime, you can easily hand fix it yourself.
    Comment out line 301, which looks like this:
    $xml = DOMDocument::loadXML($content);
    Then insert the following two new lines immediately below:
    $doc = new DOMDocument();
    $err = $doc->loadXML($content);
    The rest of the script then continues with this:
    restore_error_handler();
    So, when you have finished, lines 301-304 will look like
    this:
    //$xml = DOMDocument::loadXML($content);
    $doc = new DOMDocument();
    $err = $doc->loadXML($content);
    restore_error_handler();
    Just in case you're interested in what the problem was: line
    301 uses
    loadXML() as a static method of the DOMDocument class. As of
    PHP 5.1.4,
    this isn't allowed. The substitute lines create a DOMDocument
    object,
    and then call the method on the new object.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • How do I display or hide a Java menu based on current url in a php page

    How do I display or hide a Javascript menu based on the current url in a php page?
    I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
    <javascript>
    if currenturl = http://jemmakidd.com/categories.php
    then displaymenu
    else if currenturl = http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
    then DONOTdisplaymenu
    What is needed is that, if you look at this page there is a java menu under the first category:
    http://jemmakidd.com/categories.php
    I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
    http://jemmakidd.com/categories.php?cat=14
    So to summarise:
    http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
    Thanks again...any ideas?
    Edited by: littlealex2009 on Jul 15, 2009 12:51 AM

    This is a Java forum, not a Javascript forum. Google the differences.
    kind regards,
    Jos

Maybe you are looking for

  • Browser or jre problem, i need help asap

    hi One ofmy jsp page calls an applet(and inturn applet calls another servlet). this applet runs in jre1.3.1 also My Question is y my browser is not able to load this applet even though my java console shows my jre version as 1.4.0 ??? when load the j

  • HT4061 This whole **** iPad "get help" is just way too much trouble.  I am going to throw the **** thing away!

    I have an iPad.  I have used it off and on.  When I went to use it tonight, I kept getting an error message on my password which I have used for at least 7 months.  Then I have to go through all kinds of contortions to get it reset.  Then I have to r

  • Java.lang.NumberFormatException: Illegal embedded minus sign

    HI, has anyone encountered this error: [fnd.framework.OAException]:Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.lang.NumberFormatException: Illegal embedded minus sign I can't seem to find the cause on metalink. Regards

  • Page Not found error + ADF application

    Hi, I am trying to deploy sample application developed using JSF+ADF to oracle applciation server 10g 10.1.3.3 version,but after login(uses jsecurity) applicaiton says Page Not Found eventhough the pages exist. I apache log i can it says File not exi

  • Infosource and Infopackages

    Hello all, In our system there is an infosource (3.5) which is currently feeding 5 targets. It has 3 infopackages associated with it - Init delta, Delta and Full repair Now, I have created a new cube (copy of one of the above said 5 targets) and assi