FTAO - David Powers

David (php guru that you are
, this is directed to you as I have no
concept of this wee problem I have.
I signed up with a new unix host, so that I could set up a
link directory
script for testing purposes. According to the help doc, once
I typed in the
path to the install script, this "you bewt" script was
supposed to install
itself and away I'd go. I had the following from the host
after I asked why
I was getting an 'internal error' trying to run the scrip:
"the reason you are getting the internal server error is
because we do not
allow mod rewrites in the htaccess file. If you need to use
these we can
add them to your hosting container on the server. Please let
us know."
What does this mean exactly and would adding them for my use
cause problems
for my site or any other user on the server?
Nadia
Adobe� Community Expert : Dreamweaver
http://www.csstemplates.com.au
- CSS Templates | Free Templates
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
http://www.macromedia.com/devnet/dreamweaver/css.html
- CSS Tutorials

Thanks David,
I asked the new host (who were suprisingly quick to respond
to my initial
support ticket - considering the time differences) to add the
mod, which
they did within minutes of my request. Now however, I'm
getting a
"forbidden' error.
So off to email them again ;-)
PS: I even get a standard install of Wordpress with the host,
so will
definitely have to get to your book one day soon !
Nadia
Adobe� Community Expert : Dreamweaver
http://www.csstemplates.com.au
- CSS Templates | Free Templates
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
http://www.macromedia.com/devnet/dreamweaver/css.html
- CSS Tutorials
"David Powers" <[email protected]> wrote in message
news:[email protected]...
> .: Nadia :. *ACE* wrote:
>> David (php guru that you are
, this is directed to you as I have no
>> concept of this wee problem I have.
>
> That's very nice of you, Nadia, but mod_rewrite has
nothing to do with
> PHP; it's an Apache module.
>
>> "the reason you are getting the internal server
error is because we do
>> not allow mod rewrites in the htaccess file. If you
need to use these we
>> can add them to your hosting container on the
server. Please let us
>> know."
>>
>> What does this mean exactly and would adding them
for my use cause
>> problems for my site or any other user on the
server?
>
> It means you can't add a mod_rewrite command through
.htaccess, but the
> server administrator is willing to do it for you. If
it's set up
> correctly, it should have no impact on your current site
or anyone else's.
>
> Disclaimer: my knowledge of Apache is basically limited
to simple things,
> such as installing PHP, creating virtual hosts, and a
little maintenance.
> I leave things like mod_rewrite to the experts.
WordPress uses mod_rewrite
> to provide nice looking links to blog entries. I use it
on my site, but
> all the mod_rewrite stuff is handled by WordPress. I
haven't touched it
> myself.
>
> --
> 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

  • Stuck in Tutorial 2 of David Powers tutorials "Build dynamic sites and web applications".

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

  • Is this a CONCAT problem re: David Powers, or a Magic Quotes problem...

    I've tried to figure this out with the posts (and some info
    on David's site, etc), and I just can't seem to figure out the real
    problem.
    I'm working on a tutorial and I can't figure out if the error
    message is correct and it's improper coding inserted by DW (and if
    so, I can't figure out what to correct) or
    If this is a problem with DW8.0.2 along the lines of what the
    hotfix that seems to be so hard to get will fix, or
    If this is along the lines of an example of why magic quotes
    should be turned off, and if so, where/how do I turn them off, and
    will that correct the code, and if not, how would it be properly
    corrected?
    Here is the error message:
    Parse Error: parse error, unexpected '=', expecting ',' or
    ')' in <thefile> on line 34.
    Here is the code it is referencing:
    32 $Search_rsSearch = "abc";
    33 if (isset(#txtSearch#)) {
    34 $Search_rsSearch = (get_magic_quotes_gpc()) ? #txtSearch#
    : addslashes(#txtSearch#);
    35 }
    36 mysql_select_db($database_dorknozzle, $dorknozzle);
    37 $query_rsSearch = sprintf("SELECT * FROM EmployeeStore
    WHERE ItemName LIKE CONCAT('%%', %s,
    '%%')", GetSQLValueString($Search_rsSearch, "text"));
    38 $rsSearch = mysql_query($query_rsSearch, $dorknozzle) or
    die(mysql_error());
    39 $row_rsSearch = mysql_fetch_assoc($rsSearch);
    40 $totalRows_rsSearch = mysql_num_rows($rsSearch);
    I'm using php4.4.4, mysql5.0.24, apache2.2.3
    Thank You,
    Jeff G.

    xViPERed wrote:
    > If this is a problem with DW8.0.2 along the lines of
    what the hotfix that
    > seems to be so hard to get will fix,
    That will fix part of your problem, but the error is caused
    by something
    else:
    > Here is the error message:
    >
    Parse Error: parse error, unexpected '=', expecting ',' or
    ')' in
    > <thefile> on line 34.
    >
    > Here is the code it is referencing:
    > 32 $Search_rsSearch = "abc";
    > 33 if (isset(#txtSearch#)) {
    > 34 $Search_rsSearch = (get_magic_quotes_gpc()) ?
    #txtSearch# :
    > addslashes(#txtSearch#);
    > 35 }
    # is one of the PHP characters used to comment out part of a
    script. I
    suspect that you have got this from the Dreamweaver help
    files, which
    are particularly unhelpful on this point. The show the
    runtime value
    expression as #formFieldName#, which is ColdFusion style, not
    PHP. You
    need to replace #txtSearch# with something like
    $_GET['search'] or
    $_POST['search'].
    What makes things worse is that the code inserted by 8.0.2
    without the
    hotfix is also incorrect. Line 34 should be something like
    this:
    $Search_rsSearch = $_GET['search'];
    Line 37 is also wrong.
    > 37 $query_rsSearch = sprintf("SELECT * FROM
    EmployeeStore WHERE ItemName LIKE
    > CONCAT('%%', %s,
    > '%%')", GetSQLValueString($Search_rsSearch, "text"));
    It should be this:
    $query_rsSearch = sprintf("SELECT * FROM EmployeeStore WHERE
    ItemName
    LIKE %s", GetSQLValueString("%" . $Search_rsSearch . "%",
    "text"));
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • "Adobe Dreamweaver PHP Training from David Powers

    “Adobe® Dreamweaver® CS5 with PHP Training from the Source  David Powers
    Lesson 7 Validating Input on the Server
    I have reached page 445, and become completely stuck - I've been about three weeks trying to sort the problem but cant get anywhere.  Not sure what to do from here so any advice would be really appreciated.  The problem:
    I have completed the script exactly as instructed, when I go live (local sever), I get a blank screen, OK, does not display.  I am sure this is something simple but I have done all the fault finding and am out foxed.  I know the local server works OK - I completed chapter 6 successfully - I can also run a php test page from the local folder that the file is stored in. i.e provictis/phpcs5.  I have saved my ZendFraework in a separate location as advised. i.e. User/SPENNY/...    
    This is the basic code:
    <?php
    $library='/Users/SPENNY/ZendFramework/library';
    set_include_path(get_include_path() . PATH_SEPARATOR .
    $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader=Zend_Loader_Autoloader::getInstance();
    if ($loader) {
              echo 'ok';
    } else {
              echo 'Huston we have a blinkin problem, but do not panic we will get things sorted';
    Gareth

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • Using PHP to identify the current page - by David Powers

    Hi There,
    I'm trying to write a script so I can identify the sub-pages under "Gallery" in my website
    Under Gallery I have more than hundred pages describing the photos but I want to identify them as the "Gallery" page.
    How do I achieve that?
    It would be tedious to write the "PHP if" statement for each photo link.
    I trust there is a simpler solution.
    In PHP solutions by David Powers, Ch.4 "Using PHP to identify the current page"
    The script is:
    <?php $currentPage = basename($_SERVER['SCRIPT_NAME']); ?>
    <ul id="nav">
      <li><a href="index.php" <?php if ($currentPage == 'index02.php') {echo 'id="here"';} ?>>Home</a></li>
      <li><a href="journal.php" <?php if ($currentPage == 'journal.php') {echo 'id="here"';} ?>>Journal</a></li>
      <li><a href="gallery.php" <?php if ($currentPage == 'gallery.php') {echo 'id="here"';} ?>>Gallery</a></li>
      <li><a href="contact.php" <?php if ($currentPage == 'contact.php') {echo 'id="here"';} ?>>Contact</a></li>
    </ul>
    Let's say that the gallery pages contains hundreds of links gallery like gallery/photos1.php, gallery/photos2.php, gallery/photos3.php, gallery/photos4.php, gallery/photos5.php, gallery/photos6.php, gallery/photos7.php etc...
    How would I identify the sub-pages so when we are there Gallery is highlighted?
    Thank you!
    Best,

    Hello Siddhardha,
    To get the details of a process you need to use Locator class from BPEL api. You can locate your process by listInstances method which accepts WhereCondition parameter used to build a query on process instances. Once you've found the process you were looking for you can use getAuditTrail method to retrieve audit trail of a given instance. You can also use setStatus() method from a BPELX java exec tag within your process and later retrieve it from instance handle by getStatus method.
    A sample snippet to retrieve instance handles to all child processes of a given process:
    StringBuffer sb = new StringBuffer();
    Locator locator = new Locator(domain,domainpassword);
    WhereCondition wc = new WhereCondition();
    String query = sb.append(SQLDefs.AL_ci_root_id).append(" = ? ").toString();
    wc.append(query);
    wc.setLong(1,parentInstance);
    IInstanceHandle[] ih = locator.listInstances(wc);
    You can read more about querying processes on http://blogs.oracle.com/matt/2006/06/27?print-friendly=true
    Radoslaw

  • Need help adapting David Powers PHP email form script please!

    Hi all,
    I'm fairly inexperienced with PHP and I'm trying to adapt the David Powers email form script from THE ESSENTIAL GUIDE TO DREAMWEAVER CS4 WITH CSS, AJAX, AND PHP.
    I've created a basic form so that visitors to the site can request a telephone call back from the site owner. The form asks the visitor for their name, telephone number and to select a time of day suitable for the telephone call to be made using radio buttons selecting between morning and afternoon.
    I'd like to achieve my goal with minimal validation error messages and would like to redirect to another page when a message is sent successfully. It is also important that in the spirit of the David Powers script I'm trying to work with, that it filters out suspect input, avoids email header injection attacks and blocks submission by spam bots.
    There may be a really simple solution to this since I don't want users to be able to enter an email address at all but I don't know enough to be able to figure it out just yet.
    I'd be grateful for any advice.
    See below for the code for the form including PHP so far...
    Thanks to everyone looking in in advance
    Karl.

    GEAtkins wrote:
    > I am using the redirect to a personal page from page 515
    of The Essential
    > Guide to DWCS3 in the following form:
    $_SESSION[MM_Username].php in the "if
    > login succeeds" field.
    Thank you for reminding me. There's a mistake in the book,
    which I
    discovered over the Christmas period, so forgot to send to
    friends of ED
    for the errata page.
    Don't use $_SESSION[MM_Username]. Use $loginUsername instead.
    It then works.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • For  David Powers ?

    David,
    Hope you having a good break from here - as you've not been
    around for
    a few days.
    When you are back - I need a little help please
    ~Malcolm N....
    ~

    > Come to think about it - Murray seemed to make the move
    to using php
    > only a few months ago - and given his enthusiasm for
    SSI's maybe this
    > tells something about the next release - or maybe I'm
    reading too much
    > between the lines (:-))
    You're looking for deep inner meaning in a shallow bowl, I'm
    afraid! 8)
    Templates are part of DW and will be for a long time. And
    personally, I
    have no problem with includes in DW templates.....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Malcolm N_" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Jan 2007 19:38:04 +0000, David Powers
    <[email protected]>
    > wrote:
    >>
    >>I'll wait for the summary. The basic thing to
    remember about include()
    >>is that it expects a relative path, an absolute path,
    or for the file to
    >>be in the PHP include path.
    >
    > Thanks David - at the moment things are under control,
    but I haven't
    > altered much of the site with DW.
    >
    >> Things get complicated if you use includes
    >>with Dreamweaver templates.
    >
    > Yes - well DW has been good at controlling some tricky
    things to date,
    > I hope that the next release makes using includes within
    simple
    > Template's a little easier.
    >
    > After all the Adobe Community Experts have been pushing
    the use of
    > SSI's very strongly in the last couple of years, telling
    us to abandon
    > tables, and complex templates (:-))
    >
    > Come to think about it - Murray seemed to make the move
    to using php
    > only a few months ago - and given his enthusiasm for
    SSI's maybe this
    > tells something about the next release - or maybe I'm
    reading too much
    > between the lines (:-))
    >
    > --
    >
    > ~Malcolm N....
    > ~

  • Question for David Powers re file 'quotations.sql'

    It would appear from the first few lines of this file (shown
    below) that it
    first checks if a table "quotations" already exists, and if
    so deletes it. Then
    it creates a new version, and populates it with the following
    data.
    Is this correct?
    Clancy
    -- Table structure for table `quotations`
    DROP TABLE IF EXISTS `quotations`;
    CREATE TABLE `quotations` (
    `quote_id` int(10) unsigned NOT NULL auto_increment,
    `quotation` varchar(255) NOT NULL default '',
    `first_name` varchar(30) NOT NULL default '',
    `family_name` varchar(30) NOT NULL default '',
    PRIMARY KEY (`quote_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -- Dumping data for table `quotations`
    INSERT INTO `quotations` VALUES (1, 'My disability is ......'
    Clancy

    Clancy wrote:
    > I thought so. As the sql file redefines the table, is it
    necessary to define
    > the table at all before running the file?
    The purpose of the preceding section is to teach you how to
    define a
    table. If all you're interested in is copying my table
    structure, feel
    free to do so. However, I believe in the principle of
    teaching a man to
    fish, rather than giving a man a fish.
    > I have been thinking about how to set up a database for
    my photo album, and
    > wondering how to order it. If I have a text file, like
    'quotations.sql', it
    > looks as if the easiest way to change the order of the
    photos is to swap the
    > lines in the text file, and then reload the whole
    database.
    If that's your conclusion, then I'm afraid that you have
    failed to
    understand the fundamental principles of how a database
    works. The order
    in which records are entered is totally irrelevant. You use
    SQL to
    display them in whichever order you require.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Same old same old: calling David Powers

    It has been interesting to watch and read the comments recently about the DW tangle with database-driven sites.
    I am using DW CS6 (12.03) Mac with Mountain Lion, and have MAMP installed and runnning.
    I have religiously finished David Powers tute at here.
    Question:
    Why am I getting the "Dynamically related files could not be resolved because of an internal error" when I render the page with the Live button?
    The page displays blank . . . LOL
    Can anyone point me to the possible cause?
    I wonder why Adobe has left this up for 3 years when (after all updates) the message still appears and development stops.
    Are the tutorial files faulty, or have I missed soemthing?
    David: can you shed light on this please?

    Nancy and David
    Thanks for reply and here are your suggestions:
    Below that 3 screen shots (2 from DW and 1 from phpMyAdmin FYI.
    I have rebuilt this several times (incl DW Site, database and DW Connection) but I am still running into the same error msg as originally when "Live" is attempted in DW.
    Code from Comment.php
    start---------------------------------------------------------
    <?php require_once('Connections/connTest.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_connTest, $connTest);
    $query_getComments = "SELECT first_name, last_name, `comment` FROM comments ORDER BY comment_id DESC";
    $getComments = mysql_query($query_getComments, $connTest) or die(mysql_error());
    $row_getComments = mysql_fetch_assoc($getComments);
    $totalRows_getComments = mysql_num_rows($getComments);
    ?>
    <!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>Cafe Townsend - Customer Comments</title>
    <link href="assets/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="assets/header.jpg" width="700" height="92" alt="Cafe Townsend" /></div>
      <h1 id="main_header">Cafe Townsend Intranet</h1>
      <div id="main">
        <h2>Customer comments</h2>
        <div id="comments">
          <?php do { ?>
            <p><?php echo $row_getComments['comment']; ?> &#8212; <?php echo $row_getComments['first_name']; ?> <?php echo $row_getComments['last_name']; ?></p>
            <?php } while ($row_getComments = mysql_fetch_assoc($getComments)); ?>
        </div>
      </div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($getComments);
    ?>
    end -------------------------------------------
    Looking forward to your thoughts on this. Tony
    Thanks again!

  • For David Powers please

    Hi,
    I have used your method for a news blog from PHP for
    Dreamweaver 8.
    When no image is selected, firefox does not display the image
    container with the red X.
    However, most of our users are still using IE6.
    In IE6 when no image is used it shows an image holder with
    the red x in it.
    Is there a way to remove the image place holder if no image
    is displayed?
    Also when no caption is used, in all browsers you get a
    "Caption here" in place of the caption.
    cheers

    Macnimation wrote:
    > As a by the way, I also have the Essential Guide to
    Dreamweaver with CC, AJAX
    > and PHP and bwtween them I get most help.
    Thanks. That's nice to know.
    > Do you know of or are you planning a future book to
    build applications other
    > than Blogs and Photo Galleries, because it seems that
    nearly all books on Web
    > developement whether it is PHP, ASP or Coldfusion seem
    to concentrate on these
    > applications only.
    I suspect that's because they involve basic database
    techniques.
    Beginner-level books sell more than advanced ones, mainly
    because anyone
    who moves beyond the beginner level is usually fairly capable
    of
    tackling more complex projects without the assistance of a
    book.
    Anyway, the ideas you have suggested will certainly give me
    something to
    think about for future books. I'm currently putting the final
    touches to
    a CS4 book, but it doesn't cover the sort of area you're
    looking for.
    > I discussed this last year at Adobe MAX in Barcelona and
    alot of people agreed
    > that some more diverse applications would be useful.
    I'll be in Milan in
    > December also......
    I'm hoping to go too, but haven't made a firm decision yet.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I have adapted a php contact form of David Powers tut

    Hi I have slowly changed according to my research etc. I am
    worried that since changing things that I have left some important
    error checking.
    Well here is the error checking and the form:
    <h2><span class="black">contact us :
    </span></h2>
    <span class="errmsg1">
    <?php
    if ($error) {
    echo 'Please complete the missing item(s) indicated.';
    // remove escape characters from POST array
    if (get_magic_quotes_gpc()) {
    function stripslashes_deep($value) {
    $value = is_array($value) ? array_map('stripslashes_deep',
    $value) : stripslashes($value);
    return $value;
    $_POST = array_map('stripslashes_deep', $_POST);
    ?>
    </span>
    <form name="option" id="option" method="post"
    action="<?php $_SERVER['PHP_SELF']; ?>">
    <label> </label>
    <table width="70%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td>Your Name</td>
    <td><input name="name" type="text" class="search"
    id="name" value="<?php if (isset($_POST['name'])) {
    echo htmlentities($_POST['name']);} ?>" size="30"
    maxlength="50" /></td>
    </tr>
    <tr>
    <td> </td>
    <td><?php if (isset($error['name'])) { ?>
    <span class="errmsg1"><?php echo $error['name'];
    ?></span>
    <?php } ?> </td>
    </tr>
    <tr>
    <td><span class="subheader">Your Email
    Address</span></td>
    <td><span class="subheader">
    <input name="email" type="text" id="email"
    value="<?php if (isset($_POST['email'])) {
    echo htmlentities($_POST['email']);} ?>" size="30"
    maxlength="80" />
    </span></td>
    </tr>
    <tr>
    <td> </td>
    <td><?php if (isset($error['email'])) { ?>
    <span class="errmsg1"><?php echo $error['email'];
    ?></span>
    <?php } ?> </td>
    </tr>
    <tr>
    <td>Reason For Enquiry </td>
    <td><label>
    <select name="option">
    <option value="">Please Select Option</option>
    <option value="complaint"<?php
    if (isset($error) && $_POST['option'] ==
    'complaint') { ?>
    selected="selected"
    <?php } ?>>Complaints</option>
    <option value="listbusiness"<?php
    if (isset($error) && $_POST['option'] ==
    'listbusiness') { ?>
    selected="selected"
    <?php } ?>>List My Business </option>
    <option value="removelisting"<?php
    if (isset($error) && $_POST['option'] ==
    'removelisting') { ?>
    selected="selected"
    <?php } ?>>Remove My Listing</option>
    <option value="upgradelisting"<?php
    if (isset($error) && $_POST['option'] ==
    'upgradelisting') { ?>
    selected="selected"
    <?php } ?>>Upgrade Listing</option>
    <option value="banner"<?php
    if (isset($error) && $_POST['option'] == 'banner') {
    ?>
    selected="selected"
    <?php } ?>>Banner Advertising</option>
    <option value="agentenquiry"<?php
    if (isset($error) && $_POST['option'] ==
    'agentenquiry') { ?>
    selected="selected"
    <?php } ?>>Become An Agent</option>
    <option value="other"<?php
    if (isset($error) && $_POST['option'] == 'other') {
    ?>
    selected="selected"
    <?php } ?>>Other</option>
    </select>
    </label></td>
    </tr>
    <tr>
    <td> </td>
    <td><?php if (isset($error['option'])) { ?>
    <span class="errmsg1"><?php echo $error['option'];
    ?></span>
    <?php } ?> </td>
    </tr>
    <tr>
    <td>Message</td>
    <td><label>
    <textarea name="message" cols="30" rows="3"
    id="message"><?php if(isset($error)) {echo $messageBody;}
    ?>
    </textarea>
    </label></td>
    </tr>
    <tr>
    <td> </td>
    <td><?php if (isset($error['message'])) { ?>
    <span class="errmsg1"><?php echo $error['message'];
    ?></span>
    <?php } ?> </td>
    </tr>
    <tr>
    <td> </td>
    <td><label>
    <input name="send" type="submit" class="searchbutton"
    id="send" value="Enquiry" />
    </label></td>
    </tr>
    </table>
    <label> </label>
    <p><span class="subheader">
    <label> </label>
    </span></p>
    </form>

    jjjhbj111 wrote:
    > Hi I have slowly changed according to my research etc. I
    am worried that since
    > changing things that I have left some important error
    checking.
    I haven't gone through your script with a fine-tooth comb,
    but your
    email check uses a POSIX regular expression, which won't work
    with
    preg_match(). You could use eregi() instead, but there are
    plans to
    remove the ereg_ functions from PHP 6, so you would be better
    advised to
    stick with Perl-compatible regular expressions (PCRE).
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can't find Part 4 of CC version of David Powers tutorial - help?

    Was happily working away in the David Powers tutorial for Dreamweaver CC. Got through Parts 1 through 3, and started 4. Bookmarked part 4 on my browser. Came back to it this morning, and now that same URL is showing me the CS6 version of the training, which is completely different content. I can not find the URL for Part 4 of the CC version of this training any more... Help?
    (Note the header indicates Dreamweaver CC, but the body of instruction indicates CS6, and the fictional project being built is "Check Magazine" instead of the "Bayside Beat" project of the CC training...)
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt4.html

    Hi,
    Thanks for the heads up!
    I'm noticing the link is incorrect for part 4.  I'll check with our documentation team to sort this out. 
    Once I get more details I'll update you once corrected.
    Kind regrards,
    -Sidney

  • Issue for ch03 in Dreameaver CS5.5 Studio Techniques by David Powers

    Hello David,
    I am following your book.
    I read you was in Japan in 1994. Me too. :-). From 1994-1997. In Kyoto.
    My question is about the file index.html.
    When I removed most of the text, and have for intance:
    div id="wrapper">
      <div id="header" role="banner">
        <h1>Tozai Hotel</h1>
      </div>
      <ul id="nav" role="navigation">
        <li><a href="index.html">Home</a></li>
        <li><a href="rooms.html">Guest Rooms</a></li>
        <li><a href="dining.html">Dining</a></li>
        <li><a href="garden.html">Garden</a></li>
        <li><a href="reservations.html">Reservations</a></li>
      </ul>
      <div id="hero" role="main">
        <h2>Where East Meets West</h2>
        <p><i lang="ja">Tozai</i> is Japanese for &#8220;East-West.&#8221; It epitomizes the welcome we offer our guests, combining western-style luxury with <a href="dining.html">the best in Japanese cuisine</a> and hospitality.</p>
    <!-- text removed -->
      </div>
    </div>
    I have a strange begavior.
    Using an iTouch, my page is floating. And when I try to use Landscape and then return to Portrait, the page seemed to be zoomed.
    Sorry for my english.
    If you have an idea, it is welcomed.
    Jilusan

    I think you mean our Community Professional, David Powers. If you want to specifically contact him, you should send him a Private Message with a link to this thread here: http://forums.adobe.com/people/David_Powers
    Coming to answer your question, post your CSS file here. The styling is managed by the CSS, not by the HTML. Only with your CSS we can help you.

  • Dw CS & PHP - calling David Powers

    David,
    Does Dw CS treat php any differently - i.e does all / most of
    the
    information in your book still apply ?
    thanks
    Malcolm
    ~Malcolm N....
    ~

    <DUCK!>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "David Powers" <[email protected]> wrote in message
    news:f0lh51$ro$[email protected]..
    > Steve Fleischer wrote:
    >> That was a cover - he was really a secret agent,
    code name OOP. They
    >> based some films on his adventures...
    >
    > My cover blown at last! I did a degree in Russian, and
    my first job was
    > with the COI (Central Office of Information - UK
    government publicity).
    > Most of my friends thought it was a cover for the CIA!
    Actually, it was,
    > but now that I've told you... ;-)
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • David Powers cs5 with php...Zend

    This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:
    Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4
    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1. 11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4
    I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader = Zend_Loader_Autoloader::getInstance();
    if ($loader) {
    echo 'OK';
    } else {
    echo 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

Maybe you are looking for

  • Batch Listing Metadata for Offline Files

    Hello all - I'm using Premiere CC 2014 on OSX. I'm trying to do a batch list export of the metadata for a few dozen offline clips in my project. Here are the details: I need the filenames and video ins and outs (NOT the media start and end) for all o

  • WebHelp search not working on some OS/browsers

    Hello, I created a help system and generated WebHelp for the client. Now that they have it on their site, they're having issues with different operating systems and browsers. This is probably something basic that I should have learned about long ago,

  • ORA-00316 in the alert log file

    Thu Aug 21 17:23:05 2008 Errors in file /ora_dump/CONCILIA/bdump/concilia_arc1_205172.trc: ORA-00316: log 3 of thread 1, type 0 in header is not log file ORA-00312: online log 3 thread 1: '/ora_data04/CONCILIA/redo01.log' Thu Aug 21 17:23:05 2008 Err

  • IPhone 4s says "Invalid SIM" with IOS 7.1

    I have an unlocked Iphone 4s for T-mobile which allowed me to use the iphone on a metropcs plan with a metro SIM card. I switched to metro on Sunday, today being Tuesday, and it worked perfectly, perfect 4g, perfect T-mobile carrier. Yesterday, Monda

  • Personal Settings for Siri to use

    Siri is telling my I need to update my personal information in Settings.  How do I do that?