Coldfusion or php?

This might be like asking which sport is the most popular
while standing outside the superbowl, but I am trying to decide
between CF and PHP for dynamic websites. I use DW8 and would like
to try dynamic sites. I know nothing about programming but would
like to learn one of the two. I know that PHP has a bigger
following and CF is easier to learn (so I've read).
Comments?

??One of its chief marketing points is
"Look! It's all tags! It's as easy to use as HTML!". They're
not hunting
the seasoned developer with an approach like that, are they?
I will add to that by saying that seasoned developers would
never be lulled
into thinking cf's percieved advntages outweighed it's
disadvantages - but
the newbies would fall for the idea that "html is easy, html
uses tags = cf
uses tags, it must be as easy as html"
A couple of years back i tried to read a file with cffile,
but needed to do
it one line at a time - I was shocked to learn that something
so basic could
not be done in cfml. The second thing we did (old company)
was fall for the
"out of the box" thing to find that we had absolutely no
drawing api
(drawing tags). I had sold the cf ideato my boss who later
researched and
found out that both these thing could be doen in php adn that
php was free
of charge and already installed on one of the servers!!
Luckily, work around
weere easy to find, but still, I definitely experienced the
issue of cf's
limitations.
I feel I should add to that by pointing out that these days
it seems that
the official response seems to be "if it can't be done in
cfml just use
java" - this flys in the face of the whole reason people buy
cf in the first
place.
>>I don't think it's going to fall off the map any time
soon
No, theres still plenty of newbs out there and still plenty
of folk that
depend on it for existing websites. I am dissapointed to see
the rather mass
exodus from cf to the java.php and .net world but i think cf
can still do
okay in the market it aims for.
"Adam Cameron" <[email protected]> wrote in message
news:[email protected]...
>> Why say this - is it more to do with the
inflexibility or to do with
>> there
>> being less demand for cf skills there days?
>
> I've been fortunate enough to not have to look for work
in CF: both the
> jobs I've had so far came to me, rather than the other
way around. And I
> know if I needed work again, my network is of sufficient
size that I could
> get a job tomorrow if I needed one. So it's not the
availability of work,
> no. I've never considered that.
>
> My findings with CF are probably best summed up by
drawing a parallel to
> common arguments regarding <cfinsert> /
<cfupdate> and <cfquery>. ie:
> <cfinsert> and <cfupdate> are OK as long as
you hold your mouth the right
> way and only ever want to do exactly what those tags are
set out to do.
> On
> the other hand <cfquery> gives you a lot more
scope beyond what those tags
> offer.
>
> I've used <cfinsert> and <cfupdate>
precisely ONCE, before I spotted the
> draw backs of having to code in the way Allaire
second-guessed I should be
> coding; and actually the gains in using <cfquery>
instead deeply outweigh
> the increased typing time (which is all it amounts to).
>
> I feel the same way about CF as a whole. CF is one big
<cfinsert>.
>
>
>> Personally, I am fed up hearing of its demise and
hearing from the
>> "professional" developers about how cf is a "toy"
language for newbies.
>> Arrgggghhhh!
>
> I don't think it's going to fall off the map any time
soon, but I also
> *do*
> think its niche is the newbie market. One of its chief
marketing points
> is
> "Look! It's all tags! It's as easy to use as HTML!".
They're not hunting
> the seasoned developer with an approach like that, are
they?
>
> --
> Adam

Similar Messages

  • Slight roadblock in "DW 8 with ASP, ColdFusion, and PHP: Training from the Source"

    I'm working my way through Dreamweaver 8 with ASP,
    ColdFusion, and PHP:
    Training from the Source. I've come to the middle of Lesson 6
    and have hit
    my first obstacle in learning PHP. I'm following the
    instructions to format
    the output of the tour price calculator, but my issue is with
    where to place
    the following PHP code: <?php setlocale(LC_MONETARY,
    'en_US'); echo
    money_format('%i', $tourPrice); ?>
    I placed it before the DOCTYPE and when that didn't work, I
    tried inserting
    right before the code that retrieves the tour price (in the
    body of the
    page). That didn't work either.
    I also tried changing money_format to number_format and
    manually inserting
    the $, but when I tested everything, the output printed as
    follows:
    The estimated cost of your tour is
    $0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000500.
    I'm not quite sure where I've gone wrong.
    Thanks for any help,
    Heather

    Coach Bob wrote:
    > David,
    >
    > I would like to understand better your comment about the
    money_format. The
    > ability to use it is dependent on the host system's
    support of the C library
    > function strfmon(), correct? So if a user were
    developing on a windows box with
    > a local WAMP install it would not work while it may work
    on their *nix-based
    > Web host?
    Check the PHP documentation - it tells you all you need to
    know:
    http://www.php.net/manual/en/function.money-format.php
    > I will see to it that it gets corrected in the next
    version of the book!
    I've no idea what relationship you have with "Training from
    the Source",
    but I find it interesting - to say the least - that you need
    to the ask
    the author of a rival book.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Missing File - Adobe Dreamweaver CS3 with ASP, Coldfusion, and PHP

    On page 263 of Adobe Dreamweaver CS3 with ASP, Coldfusion,
    and PHP by:Jeffrey Bardzel and Bob Flynn the file called
    countryDetailXML.asp is missing. How can I find that file? Any
    idea?
    Thanks for your help.

    @citaiz,
    That file is created earlier in the lesson in an exercise
    starting on page 257. For the sake of the lesson, you can use
    countryDetail.xml that is included in the lesson 09 start folder.
    It is not important for this lesson that the XML is a static file
    or one generated in real time from the database. The version of
    Spry (1.4) that shipped with DW CS3 used XML data only. The current
    version (1.6.1) can use JSON and HTML tables for the data source as
    well. You can get the latest version of Spry for free at
    http://labs.adobe.com/technologies/spry/,
    including an extension to update your copy of DW to the latest
    version.
    Bob Flynn

  • Adobe Dreamweaver CS3 with ASP coldfusion and PHP search?

    I am working through Adobe Dreamweaver CS3 with ASP
    coldfusion and PHP with the intent of creating a data base site
    that primarily requires a search engine on the index page. The
    search page in the book uses specific search criteria ensuring that
    there will always be a match to the data base but I need to create
    an input text field search engine. My Q, if there is no data within
    the data base that match the variable, will it return with an error
    requiring an argument in the code to respond to no matching data.
    Hopefully there are comprehensive online recourses for these search
    engines as they are so common. I am a complete newby to all aspects
    of web development and code so it will need to be a thorough
    explanation, an idiots guide. ANY HELP GREATLY APPRECIATED

    Rob,
    Let me try to answer your questions, understanding that my
    answers are laced with my experience and therefore my bias.
    1. For the most part the SQL that you write for Access, MS
    SQL or MySQL is going to be the same. I won't make that claim about
    Oracle or PostgreSQL because I have limited or no experience in
    those areas. To be sure when you head down the road with any DBMS
    there are finer points on 'value added' features (to over simplify
    things like MS SQL's Transact SQL), but for the most part when you
    are pulling out, inserting or deleting records the SQL that you
    write will be the same. In fact, I don't think I had to make any of
    the SQL in the book different to deal with the back end db.
    2. As for your host steering you away from MySQL, I don't
    know why that would be. It is MUCH more stable and robust than
    Access for web development. My research showed that you can use
    MySQL just fine with ASP though that clearly wouldn't be
    Microsoft's first choice.
    3. A quick aside, the fact that you are building ASP on a Mac
    would seem to indicate that you are developing on your production
    server. That's never a good idea. Go local if you can. If you have
    a newer Intel Mac you can use VM Fusion, Parallels or even Boot
    Camp to run Windows in a virtual environment and develop there,
    only moving your code to production when you are happy with it.
    There is of course the fact that they two environments would not be
    identical and you may need to change a few references, but it is
    still a better practice than developing on your live site. Some web
    hosts give you the ability to set up a subdomain. If yours does,
    you could set one up with a duplicate of your site and develop
    there.
    4. Let me try to pull your 'rant-let' apart into two issue. I
    begin with a question. I'm not sure what the Mac part has to do
    with it. The primary language I work in at my day job is
    ColdFusion. The majority of the most serious developers I know in
    the CF world work on Macs. I am forced into the PC world because of
    a cultural bias at the business school where I work. Having said
    that, the only time I have felt there was ANY difference in the
    tools, resources, choices I had was in any way affected by platform
    was when Adobe still had not released Flex Builder 2 for the Mac.
    Now that is behind us as well. This reaction of mine may be based
    on the fact that Access never comes into play in the work that I
    do. I regularly work with MS SQL and MySQL. (OK, so SQL Enterprise
    Manager, the MS tool of choice to talk to MS SQL is Windows only,
    but I only use that at the day job. But even there you can find
    cross-platform, free tools like Aqua Data Studio to talk from a Mac
    to MS SQL.) If I'm missing your point on the Mac, please let me
    know. Since the advent of the Intel Mac I think it is hands-down
    the best choice for a web developer. You can have Mac, Windows and
    Unix all on one machine. It doesn't get any better (providing you
    have the RAM :-)).
    As for the security question, it is somewhat analogous to the
    war on viruses and spyware. As the defenses get better, so do the
    attacks. Most languages have developed functions for vetting user
    input variables and best practices for building these things. It is
    mainly a user education issue. When I took over the book you are
    working out of, the one thing Jeffrey told me it needed was more
    security. I did my best to put more in under the constraints of the
    publisher. They didn't want the book to be any longer than the
    previous version. I did my best to modify the code used to include
    "string safe" functions and to add verbiage about the importance of
    security. It was clear that I could not add as much as was needed
    and I said so in the book. Much more is needed for a serious
    treatment of the subject and not acknowledging that would have been
    a disservice to the readers. I've been working as a developer for
    over a decade and I don't know all there is to know about it. It's
    a constantly changing field, just like all of web development. In
    fact next week I'm going through a 2-day SANS Web Application
    Security workshop in hopes of learning more. So at the risk of
    sounding like an industry apologist, I don't think it's a
    shortcoming of the development community. It is, as they say, "a
    developing situation".
    HTH,
    Bob
    http://bobflynn.info/

  • Dreamweaver and Coldfusion or PHP

    Hi..
    I am setting up a user generated video site with online
    registration and flash video using alot of social media tagging
    type services. I'm new to web design and am using Dreamweaver to
    get me started. I am looking at using mySQL as the database and a
    specific company for the streaming hosting (any recomemndations
    welcome).
    My question is should I use PHP (which is free) as the
    application server or should I use Coldfusion (more expensive)?
    How well and importantly simply does either work with and
    when using Dreamweaver?
    If PHP works well with Dreamweaver for a beginner then I will
    go for this (is cheaper) but does anyone have any views on
    experience on PHP with dreamweaver?
    any help really appreciated
    Dan

    Both PHP and CF are lead-pipe simple with DW. Both are
    robustly supported.
    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
    ==================
    "stumpppppppppp" <[email protected]> wrote
    in message
    news:ermjf1$7s7$[email protected]..
    > Hi..
    >
    > I am setting up a user generated video site with online
    registration and
    > flash
    > video using alot of social media tagging type services.
    I'm new to web
    > design
    > and am using Dreamweaver to get me started. I am looking
    at using mySQL as
    > the
    > database and a specific company for the streaming
    hosting (any
    > recomemndations
    > welcome).
    >
    > My question is should I use PHP (which is free) as the
    application server
    > or
    > should I use Coldfusion (more expensive)?
    >
    > How well and importantly simply does either work with
    and when using
    > Dreamweaver?
    >
    > If PHP works well with Dreamweaver for a beginner then I
    will go for this
    > (is
    > cheaper) but does anyone have any views on experience on
    PHP with
    > dreamweaver?
    >
    > any help really appreciated
    >
    > Dan
    >
    >
    >

  • Web Services with ColdFusion and PHP mixed

    Hi,
    We need to used web services provided by remote server. The
    problem is the
    remote server is on PHP and our server is on ColdFusion. Is
    there a way to
    use the web services on PHP server with our ColdFusion
    server?
    I understand ColdFusion automatically generate the WSDL by
    adding ?wsdl
    after the CFC, but I can't do the same thing because the
    remote server is
    not on ColdFusion. They have given us the wsdl web address,
    but it seems
    using the wsdl address directly without CFC is not working.
    Is that right?
    Please let me know.
    YC

    From the coldfusion side of things, it all seems okay what
    you are doing. It
    is an issue with the php/wsdl side of things. I can access
    the wsdl ok, but
    got the same error as PaulH just then when I tried to use web
    service in
    cf..
    "YC" <[email protected]> wrote in message
    news:[email protected]...
    > OK, I learned a good thing. I tired the Dreamweaver +
    icon with a
    > ColdFusion CFC file and it works fine. Now I learned I
    don't have to code
    > the <cfinvoke> tag, but just drag and drop. But
    when I tried the WSDL
    file:
    >
    http://cyfernet.ces.ncsu.edu/ws/resources.wsdl,
    and "ColdFusion MX" as the
    > proxy generator, I had an error. Do I need any other
    option to choose
    from?
    > It seems "Edit Proxy Generator list" doesn't provide a
    sufficient answer.
    >
    > I know the URL of the WSDL file is correct because I
    used it to create a
    web
    > service in PHP locally on my laptop, and it works. From
    the previous
    > answers of you and PaulH, it seems if the WSDL works
    with PHP, it should
    > also work with any other language, right?
    >
    > Have you tried yourself? Did it work?
    >
    > YC
    >
    > "Eric" <[email protected]> wrote in message
    > news:[email protected]...
    > >
    > >
    > > An easy way to do this is to use the dreaweaver
    'components' palette.
    > > Select
    > > 'web services' from the drop down list and then
    click the '+' icon to
    > > create
    > > the call to the web service. (this uses the
    cfinvoke tag)
    > >
    > >
    > > "YC" <[email protected]> wrote in message
    > > news:[email protected]...
    > >> I feel very sorry to keep asking this
    apparently very basic question,
    but
    > >> please be patient with me.
    > >>
    > >> Yes, it is right that I just need to consume
    the pre-existing web
    > >> service.
    > >> This is the WSDL page:
    http://cyfernet.ces.ncsu.edu/ws/resources.wsdl
    and
    > >> this is the web service page on the server
    using it:
    > >>
    http://cyfernet.ces.ncsu.edu/ws/getresources-client.php,
    provided as an
    > >> example.
    > >>
    > >> So in order to have the page run in ColdFusion,
    at least the following
    > >> tag
    > >> below should come up without an error?
    > >> <cfset
    > >>
    > >
    ws=createObject("webservice","
    http://cyfernet.ces.ncsu.edu/ws/getresources-c
    > > lient.php")>
    > >>
    > >> Sorry, but I still get an error message.
    > >> I need to provide "getResourcesByCatid" as the
    method and "catid" as
    the
    > >> parameter, but it should work only if the
    previous tag works without an
    > >> error, right?
    > >>
    > >> YC
    > >>
    > >>
    > >> "Eric" <[email protected]> wrote in
    message
    > >> news:[email protected]...
    > >> >>>We need to used web services
    provided by remote server.
    > >> >
    > >> > Right, so the web service already exists -
    you just want to consume
    it?
    > >> >
    > >> >>Is there a
    > >> >> >> way to use the web services
    on PHP server with our ColdFusion
    > > server?
    > >> >
    > >> > Yes - thats the whole point of web
    services, you can create them in
    one
    > >> > language/platform and consume them in
    another.
    > >> >
    > >> >> Whey you say "create a web service,"
    do you mean I need to create a
    > >> >> <cfcomponent> tag in CFC format?
    Creating a CFC is not a problem,
    but
    > >> >> how
    > >> >> can I place it on the remote server
    because it is running with PHP,
    > >> >> not
    > >> > with
    > >> >> ColdFusion?
    > >> >
    > >> > Sorry if I am not understanding the
    question clearly, but it seems to
    > >> > me
    > >> > that you want to make use of an existing
    php based web service. Why
    do
    > > you
    > >> > you need to place a CFC on the php server?
    You just need to execute
    the
    > >> > web
    > >> > service from the coldfusion server using
    cfml. As Paulh says:
    > >> >
    > >> > <cfset
    ws=createObject("webservice","url to the php based web service
    > >> > here")>
    > >> >
    > >> > The variable 'ws' being your hook into the
    php web service from
    within
    > >> > your
    > >> > cfml code.
    > >> >
    > >> >
    > >> >
    > >> >
    > >> >
    > >> >
    > >> > "YC" <[email protected]> wrote in
    message
    > >> > news:[email protected]...
    > >> >> Eric,
    > >> >> Whey you say "create a web service,"
    do you mean I need to create a
    > >> >> <cfcomponent> tag in CFC format?
    Creating a CFC is not a problem,
    but
    > >> >> how
    > >> >> can I place it on the remote server
    because it is running with PHP,
    > >> >> not
    > >> > with
    > >> >> ColdFusion?
    > >> >>
    > >> >> YC
    > >> >>
    > >> >> "Eric" <[email protected]>
    wrote in message
    > >> >>
    news:[email protected]...
    > >> >> > >We need to used web services
    provided by remote server. The
    > >> >> > >problem
    > >> >> > >is
    > >> >> > >the
    > >> >> > remote server is on PHP and our
    server is on ColdFusion.
    > >> >> >
    > >> >> > Thats one of the main nenefits of
    web services - this does not
    > > matter.
    > >> >> >
    > >> >> >>> I understand ColdFusion
    automatically generate the WSDL by
    adding
    > >> > ?wsdl
    > >> >> >> after the CFC, but I can't do
    the same thing because the remote
    > > server
    > >> > is
    > >> >> >> not on ColdFusion.
    > >> >> >
    > >> >> > Sounds like you want to consume a
    web service, not create one. You
    > > can
    > >> >> > create the call in Dreamweaver,
    just look up help on calling a web
    > >> >> > service. Also see Adobe site
    using search for 'using web services
    in
    > >> >> > coldfusion'
    > >> >> >
    > >> >> >
    > >> >> >
    > >> >> >
    > >> >> > "YC" <[email protected]>
    wrote in message
    > >> >> >
    news:[email protected]...
    > >> >> >> Hi,
    > >> >> >> We need to used web services
    provided by remote server. The
    > >> >> >> problem
    > >> >> >> is
    > >> >> >> the remote server is on PHP
    and our server is on ColdFusion. Is
    > > there
    > >> > a
    > >> >> >> way to use the web services
    on PHP server with our ColdFusion
    > > server?
    > >> >> >>
    > >> >> >> I understand ColdFusion
    automatically generate the WSDL by adding
    > >> >> >> ?wsdl
    > >> >> >> after the CFC, but I can't do
    the same thing because the remote
    > > server
    > >> > is
    > >> >> >> not on ColdFusion. They have
    given us the wsdl web address, but
    it
    > >> > seems
    > >> >> >> using the wsdl address
    directly without CFC is not working. Is
    > >> >> >> that
    > >> >> >> right?
    > >> >> >>
    > >> >> >> Please let me know.
    > >> >> >>
    > >> >> >> YC
    > >> >> >>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >>
    > >> >
    > >> >
    > >>
    > >>
    > >
    > >
    >
    >

  • For ecommerce - coldfusion or php?

    Hi folks,
    I want to build a complete ecommerce site. I've just started learning java script and php and i am planning to learn colfusion for the ecommerce aspect of web development. However, i just came across something on the web that said one could build an ecommerce site with php as well - something i didn't know.
    Question: is there any advantage CF has over php in relation to ecommerce and, even if there is, can i get away with doing it with php -  being that it is free rather than having to buy coldfusion?
    Thanks

    I presume that YOUR application will not be processing credit cards, debit cards and paypal transactions.  But rather your application will be passing these jobs off to credit card, debit card and|or paypal companies to do the credit card processing for you.
    I.E.  YOUR application should NEVER COME NEAR to a credit card or other financial transaction.  That opens up a giant can of worms that I would hope is not going to be tackled by a student "just started learning java script and php".
    What YOUR application should do is collect the order information from a customer and then send the appropiate data to the API of the company you have chosen to handle the financial transactions and then wait from a response from their system.
    Just wanted to be clear.  And none of this changes whether you right your application in ColdFusion, PHP, ASP.NET, Cobal or binary.  The point here is that there are a lot of very important privacy and security requirements to handling financial transactions that must be dealt with at all levels of system design, implementation, and maintenance.  And unless you are working for Paypal, or some other such company, you don't even want to attempt something like this.
    I'll get off my soapbox now.

  • Dreamweaver 8 with ASP, ColdFusion and PHP Downloads

    Hi,
    I wondered if anyone new if there is anywhere to download the accompanying files (off the CDROM)? I can't find anywhere on the Adobe site where you can.
    I purchased the book from Oxfam Bookstore and the CD is snapped in two pieces but I'd obviously like to follow the tutorials.
    Thanks

    That's quite an old book, so I don't know if there's still any support for it. I wrote the most recent version: "Adobe Dreamweaver CS5 with PHP: Training from the Source". The files for my book are not freely available for download, so I suspect the same is true of the Dreamweaver 8 version.
    According to the publisher's website, you can request a replacement CD from [email protected] However, I wouldn't hold out much hope of getting a replacement for an old book that was bought from a charity shop. Sorry.

  • DW MX 2004 with asp, coldfusion, and php lesson 1

    Started Jeffrey Bardzell's book, and sorry, I think I can
    struggle through it even though I know little about html. In the
    very first lesson I am already stumped. I am hoping there is a
    simple setting that needs to be changed. In pasting text from the
    contact document into the contact page, DW is supposed to
    automatically enter the paragraph and line breaks, according to the
    book. Mine doesnt. I have tried numerous times and the
    pre-formatted text pastes in and becomes one big running paragraph.
    What am I doing wrong?

    PhilAJ,
    quote:
    Surely if DW is creating this then it should aways work ?
    It would be nice, wouldn't it? ;-)
    There are two basic types of validation - client-side and
    server-side.
    Client-side validation uses JavaScript, in this case the code
    that DW generates, but you are dependent on the user's browser
    settings. It happens on the user's machine before anything is sent
    back across the Internet to your web server. If they want to turn
    off JS, they can.
    Server-side validation takes place on the server with the
    data sent from the user. webpro2k has provided you with a nice bit
    of code to test whether those fields come in blank. If they do, you
    can decide what to do with the user's interaction. Instead of the
    Thank You page, or wherever you may have sent them after a
    successful submission, you could send them back to the form
    indicating the fields they neglected to fill out and pre-populating
    those they already filled out with the data from the first
    submission.
    Best practice is to do both client-side (in theory it reduces
    user frustration if done right.) and server side (to ensure clean
    data). It takes a little extra work. You know your audience and
    your needs, so you can do the cost/benefit analysis.
    Regards,
    Bob

  • Adobe DW CS3 with ASP, Coldfusion, and PHP Training book - problem.

    Hi
    I have been creating a site and using the DW CS3 'Training
    from the Source' book by Jeffrey Bardzell and Bob Flynn as the
    tutorial text.
    Basically - I have an .asp form that collects data into
    fields, which are validated using the DW validate form funstions,
    then passes the data to another .asp page that emails the data to
    me.
    All works well for me and for a lot of people I have used to
    test the site....
    BUT
    I am getting some people whose data is obviously NOT being
    captured or passed - as teh Emails are blank. I can't ask them what
    browsers they are using - as their Email address should be in the
    Data !!
    I did try the form with the Javascript Disabled in my browser
    - and the validation then failed to work - but the data still did
    get sent.
    1. If Javascript is disabled - how can I get the validation
    to work?
    2. Is there any other reason that my data may be getting lost
    Thanks in Advance
    Phil

    PhilAJ,
    quote:
    Surely if DW is creating this then it should aways work ?
    It would be nice, wouldn't it? ;-)
    There are two basic types of validation - client-side and
    server-side.
    Client-side validation uses JavaScript, in this case the code
    that DW generates, but you are dependent on the user's browser
    settings. It happens on the user's machine before anything is sent
    back across the Internet to your web server. If they want to turn
    off JS, they can.
    Server-side validation takes place on the server with the
    data sent from the user. webpro2k has provided you with a nice bit
    of code to test whether those fields come in blank. If they do, you
    can decide what to do with the user's interaction. Instead of the
    Thank You page, or wherever you may have sent them after a
    successful submission, you could send them back to the form
    indicating the fields they neglected to fill out and pre-populating
    those they already filled out with the data from the first
    submission.
    Best practice is to do both client-side (in theory it reduces
    user frustration if done right.) and server side (to ensure clean
    data). It takes a little extra work. You know your audience and
    your needs, so you can do the cost/benefit analysis.
    Regards,
    Bob

  • Dreamweaver 8 with ASP, ColdFusion, and PHP

    I'm having trouble with diplaying multiple recordsets. I did
    everything that the book told me to do, but it doesn't work. I just
    got done with the tours.asp and it works fine. Now I'm working on
    the index.asp. rs_journal comes up fine, but when I add the
    rs_worldregions, the page won't come up. I even uploaded the
    finished sample of index.asp that came with the book and that
    didn't work.
    Has anyone read this book and have the same troubles?

    This is what the code looks like.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/conn_newland.asp" -->
    <%
    Dim rs_journal
    Dim rs_journal_numRows
    Set rs_journal = Server.CreateObject("ADODB.Recordset")
    rs_journal.ActiveConnection = MM_conn_newland_STRING
    rs_journal.Source = "SELECT journalID, journal_entry FROM
    tbl_journal ORDER BY journalID DESC"
    rs_journal.CursorType = 0
    rs_journal.CursorLocation = 2
    rs_journal.LockType = 1
    rs_journal.Open()
    rs_journal_numRows = 0
    %>
    <%
    Dim rs_worldregions
    Dim rs_worldregions_numRows
    Set rs_worldregions = Server.CreateObject("ADODB.Recordset")
    rs_worldregions.ActiveConnection = MM_conn_newland_STRING
    rs_worldregions.Source = "SELECT * FROM tbl_region ORDER BY
    regionName ASC"
    rs_worldregions.CursorType = 0
    rs_worldregions.CursorLocation = 2
    rs_worldregions.LockType = 1
    rs_worldregions.Open()
    rs_worldregions_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rs_worldregions_numRows = rs_worldregions_numRows +
    Repeat1__numRows
    %>
    <!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>
    <title>Newland Tours</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <link href="css/newland.css" rel="stylesheet"
    type="text/css" /></head>
    <body>
    <table width="750" border="0" cellpadding="3"
    cellspacing="0">
    <tr>
    <td colspan="2" width="470"><img
    src="images/banner_left.gif" width="451" height="68" alt="Newland
    Tours Banner, Left." /></td>
    <td width="280"><img src="images/banner_right.jpg"
    width="276" height="68" alt="Newland Tour Banner, Right."
    /></td>
    </tr>
    <tr valign="top">
    <td width="180"> </td>
    <td width="290"> </td>
    <td width="280"> </td>
    </tr>
    <tr valign="top">
    <td width="180" bgcolor="#DCDFD9">
    <p class="navhead">Explore the Site</p>
    <p>
    <a href="about.asp">About Newland
    Tours</a><br />
    <a href="tours.asp">Find Tours</a><br />
    <%
    While ((Repeat1__numRows <> 0) AND (NOT
    rs_worldregions.EOF))
    %>
      <a
    href="tours_detail.asp?regionID=<%=(rs_worldregions.Fields.Item("regionID").Value)%>"><%= (rs_worldregions.Fields.Item("regionName").Value)%></a><br
    />
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_worldregions.MoveNext()
    Wend
    %>
    <a href="profiles.asp">Country
    Profiles</a><br />
    <a href="contact.asp">Contact an
    Agent</a></p>
    <p><br />
    &copy; 2003 Newland Tours</p>
    </td>
    <td width="290">
    <p>Operating since 1968, Newland Tours offers an array
    of travel tours. Whether you love hiking in exotic locations or
    want to get the most out of your retirement, Newland Tours has a
    package for you.</p>
    <p><img src="images/title_featured_vacation.gif"
    width="276" height="25" alt="Featured Vacation." /></p>
    <p><img src="images/temple_small.jpg" width="72"
    height="90" align="left" alt="Heian Jingu Shrine, Kyoto
    Prefecture." /><strong>Highlights of
    Japan</strong></p>
    <p class="caption"> Image: Heian Jingu Shrine, Kyoto
    Prefecture</p>
    <p>Get a taste for Japan's diversity, from the
    serenity of its shrines to the chaos of urban life. Meet
    &quot;Fuji-san,&quot; Japan's highest mountain at 12,387
    feet, visit temples, walk through gardens, and browse in Japan's
    most elegant shopping districts.</p>
    <p>
    Only $1,199/adult and $899/child USD.
    </p>
    </td>
    <td width="280"><p><img
    src="images/title_travelers_journal.gif" width="276" height="25"
    alt="Traveler's Journal." /></p>
    <img src="images/icon_tj.gif" width="81" height="81"
    align="right" "Traveler's Journal logo."
    /><%=(rs_journal.Fields.Item("journal_entry").Value)%></td>
    </tr>
    </table>
    <br />
    <br />
    </body>
    </html>
    <%
    rs_journal.Close()
    Set rs_journal = Nothing
    %>
    <%
    rs_worldregions.Close()
    Set rs_worldregions = Nothing
    %>

  • Can we call a php function into coldfusion coding?????????

    can we call a php function into coldfusion??
    if anybody knows that let me know....

    Nope, as IIS can only pass one page to one handler, so it gets passed to ColdFusion *or* PHP. The only way it would work is to have a page with an iFrame containing a PHP page, but that's not calling a PHP function from ColdFusion.
    Dare I ask what it is you're trying to achieve exactly? If it's an extremely complicated function that can't possibly be rewritten, you'd probably want to wrap it up in a webservice and call it from CF.

  • Dreamweaver 8 with ASP, Coldfusion, & PHP

    I am new to php and I am trying to work thru Dreamweaver 8
    with ASP, Coldfusion and PHP Training from the Source. I have a
    real simple form. A user enters their first and last name then
    clicks the submit button. The form is then processed with a script
    using $_GET[first_name]; $_GET[last_name]; and it should display
    "Thank you, first_name last_name, for using my form." But the page
    show the html with a Notice: Undefined index: first_name in
    C:\htdocs\newland\test_form_processor.php on line 9. Line nine is -
    <p>Thank you, <?php echo $_GET['first_name']; ?>
    <?php echo $_GET['last_name']; ?>, for filling out my
    form.</p>. This was accomplished using the binding panel in
    DW. There is not any kind of trouble shooting in the book. Can
    someone tell me what this means? It worked like it is supposed to
    work when I had just the first name.

    Charles67 wrote:
    > I am new to php and I am trying to work thru Dreamweaver
    8 with ASP,
    > Coldfusion and PHP Training from the Source.
    I don't have a copy of that book. I wrote my own instead. ;-)
    > Notice: Undefined index: first_name in
    > C:\htdocs\newland\test_form_processor.php on line 9.
    Line nine is - <p>Thank
    > you, <?php echo $_GET['first_name']; ?> <?php
    echo $_GET['last_name']; ?>, for
    > filling out my form.</p>.
    It means that the first_name variable isn't being passed from
    the form.
    PHP is case-sensitive. Your form needs to look something like
    this:
    <form name="form1" id="form1" method="get"
    action="test_form_processor.php">
    <p>First name: <input type="text" name="first_name"
    id="first_name" /></p>
    <p>Last name: <input type="text" name="last_name"
    id="last_name" /></p>
    <input type="submit" name="submit1" id="submit1"
    value="Send" />
    </form>
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP on a COLDFUSION SERVER

    Hi,
    I have the following question: Is it possible to get PHP
    running on a Coldfusion server? I have a forum in php which I want
    to be displayed on the webpage running under Coldfusion.
    Is this possible? What would be the best solution?
    Regards,
    Kabbi Thkek

    Well no, not inside a page. You can not embed PHP code in a
    CFM file
    and expect the ColdFusion engine to know what to do with it,
    anymore
    then you can embed CFML code in a PHP file and expect the PHP
    engine to
    understand it.
    You can cross process with frames, as mentioned. Since then
    each
    request will be sent to the appropiate engine by the web
    server.
    You can also use web services to pass information from one
    app server to
    the other.
    With ColdFusion you could use the CFHTTP tag to call a PHP
    page and
    process what it returns. I'm sure PHP has similar
    functionality.
    Those are the three ideas I could come up with.
    YC wrote:
    > Of course, you can run ColdFusion and PHP at the same
    time in one machine.
    > I am running both of them on Windows and with IIS.
    >
    > But I think kabbi~'s question is, in fact, this is my
    question, too, can we
    > run a PHP page embedded inside a ColdFusion page? The
    only way I can think
    > of is using frames, but frames can be tricky in many
    cases, so I want to
    > avoid it if possible. Is there a better way to do this?
    >
    > YC
    >
    >
    > "frank_tudor" <[email protected]> wrote
    in message
    > news:ea86v1$rfk$[email protected]..
    >> I have had success running PHP and Coldfusion
    together with Apache on
    >> Windows
    >> and Linux.
    >>
    >> Start with installing Apache then install Coldfusion
    to use apache as the
    >> webserver, then install PHP
    >>
    >> Or PHP then Coldfusion...
    >>
    >> It'll work. :)
    >>
    >> Frank
    >>
    >
    >

  • Dreamweaver 8, PHP, and WebDAV problems

    I'm not sure where else to post this but maybe some of you
    folks out
    there might know the answer.
    My web server, running IIS 6, supports both Coldfusion and
    PHP. I've
    recently enabled WebDAV for two dreamweaver users who want to
    transfer
    files securely using the check-in/check-out/sync processes
    built into
    dreamweaver.
    Unfortunately, they are unable to retrieve any PHP files. I
    had the
    same problem, I tried to sync the entire web site and all the
    html and
    image files came down fine, but ALL of the php files
    generated the
    following error:
    /development/index.php - error occurred - An HTTP error
    occurred -
    cannot get index.php. Access Denied. The file may not exist,
    or there
    could be a permission problem.
    File activity incomplete. 1 file(s) or folder(s) were not
    completed.
    Files with errors: 1
    /development/index.php
    the IIS log file shows an HTTP response code of 200 - no
    error.
    The file DOES exist, and the permissions are exactly the same
    on all the
    files, because I manually set the permissions on the web root
    and had it
    apply to all subfolders and files.
    I can't figure out why it's failing to retrieve the PHP
    files...
    Rick

    Sounds like a MS IIS problem. See if this TechNote helps:
    Configuring WebDAV in IIS for use with Dreamweaver
    http://www.adobe.com/go/19095
    It has some general IIS/WebDAV tips that might help. For the
    problem
    you're seeing, make sure to disable mappings for PHP, CFM,
    ASP, etc.
    Hope this helps,
    David Alcala
    Adobe Technical Support

Maybe you are looking for

  • Material issue without order/ project

    dear all, i need one advise from your side :          we purchase some materials from outside, assemble it and sell it to customer. but we dont want to create production order for that is it any certain process in SAP so that when we do the assembly

  • Help in CS4

    Hello. I have Flash CS4. When I press F1, it's open in browser http://help.adobe.com/en_US/.... But I want to open russian help! http://help.adobe.com/ru_RU..... How can I open russian help when I press F1 ?

  • N97 Startup - "Allow connection to network for hom...

    When the N97 starts up I get a message; "Allow connection to network to enable updates to Home screen content? Updates can be disabled from 'Options'. Can I make this request go away? I have tried to find the means to disable it in Options, but canno

  • Clearing CMOS - Re-setting BIOS

    Hi, Would one of you moderator chaps please consider posting a sticky containing all the steps required to successfully re-set the BIOS. It would certainly save a lot of typing on this forum. Thanks.  ) I was also thinking that forum members should b

  • Airport Extreme (New) - Is it possible to turn off 2.4ghz broadcast?

    I've got a new Airport Extreme (MC340b/a) and I can't figure out a way to turn off the 2.4 ghz signal, so it's *only* broadcasting on 5ghz.  I've held the option key down when selecting radio mode but none of the options appear to allow me to do this