echo lines in php not reading

Posted on 2012-09-21
Last Modified: 2012-09-21
Please excuse me but I think I am going mad here.
I am trying to get a php drop down list on a web page and the internet has many options I can use.
However, every single one fails as soon as a line starts 'echo'
So I have written a tiny simple example of the echo line.
This code should (amongst other things) display the word "Hello", but does not.
I am using dreamweaver 4 (OK, it is old) but I am baffled at this pretty elementary problem.
Can anybody see the problem?


<body background="">
<form method="post" action="ccsalessum.php" target="Schedule" >
<input type = "text" name="cccust">
  <input type="submit" value="Customer">

echo "Hello";

Question by:ClaytonGlass
    LVL 7

    Expert Comment

    I tried your code on my server and Hello appears under the Customer input field - just as you would expect.
    That implies it's not a syntax problem but rather a server problem.

    Have you tried viewing the source code of the resulting webpage and seeing if that gives any clues.
    LVL 50

    Accepted Solution

    Two things

    1. Does your server have PHP installed (have to ask)
    2. Does your file have a .php extension - if .html change to .php and try again

    Author Closing Comment

    Thanks! I was going to try that!

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now