- 1). Open the Dreamweaver software in the "Adobe" Windows program group. Click "File," then "Open" and open your Web project.
- 2). Double-click the file you want to use for PHP coding. If you do not have a file created, click "File," then "New." Name your file and click "OK" to create the new file in your Web project.
- 3). Click the "Insert" menu item and select an element to add to the page. This process adds static HTML into your Web page. For instance, choose "Image" to add an image. When the configuration window opens, select an image and click "OK." Dreamweaver adds the HTML to the page.
- 4). Click the "Code" tab in the designer to see the coding editor. You type your PHP code in this editor. For instance, add the following code to print a message on the page using PHP:
<?php echo "Welcome to my Web page"; ?> - 5). Save the file and open the page in your browser to review the code and placement of the HTML elements.
SHARE