How to Create PHP to Email a Form Using Dreamweaver CS5

The Dreamweaver CS5 application provides webmasters with the tools they need to create static and dynamic Web pages. Dreamweaver uses PHP to create dynamic pages, such as forms used to send data to a database. The alternative to storing data in a database is emailing the information to your email address. Use this alternative approach to set up your PHP forms in Dreamweaver.

Instructions

    • 1

      Click the Windows "Start" button and select "All Programs." Click "Adobe," then click "Dreamweaver CS5." After Dreamweaver loads, open your Web project.

    • 2

      Click the "File" menu item, then click "New." Select "HTML" from the File Type drop-down and click "Create." Type your page title in the "Title" text box. You use an HTML form to create the input boxes, then create a PHP page in Dreamweaver to process the form information.

    • 3

      Click the "Insert" menu item, then click "Form." A form wizard opens on the page. Create each form element you want to display to collect information from your users. For instance, place a "Name," "Subject" and "Comments" text box on the form for a Feedback form.

    • 4

      Type "formtoemail.php" in the Action text box. This text box tells the form where to submit the data for processing. The PHP form then emails the data. Click "Create" to create the form.

    • 5

      Open the "formtoemail.php" file in the editor. Type your email address in the line labeled "$my_email." Type the Web page that directs the user to the Completion page in the "$continue" line item. For instance, after the user sends feedback, send the user to a "Thank You" Web page.

Related Searches:

References

Comments

Related Ads

Featured