Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'handle_form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. This is frustrating... I started on this yesterday and started again this morning. Apache is up-and-running fine. form.php runs correctly and it calls handle_form.php; both are in the same directory. But the output is as follows: Thank you, $name, for the following comments: $comments We will reply to you at $email. \n"; ?> The \"; ?> line indicated that there was an error in the code such as no termination but that isn't the case and all multiline comments are terminated correctly. Here are my debugging steps: 1. Code named per the book (form.php and handle_form.php) - check 2. Code placed in the same directory (htdocs) - check NetBeans, by default, places code in a subdirectory of the project name so I copied the files from the project to "htdoc" when this didn't work yesterday. After copying the files, if I needed to edit the files, I used Notepad++, an excellent editor I use in Linux. 3. form.php was loaded into Firefox via 'File/Open File'. 4. Checked spelling and capitalization - correct (name=name, email=email, and comments=comments) 5. Checked for errors in echo, i.e. did I type correctly $name, $email, and $comments - no errors there. 6. Did I use a single quote versus double for echo? No. 7. Did I forget the semicolon at the end of echo? No. 8. I entered in the code myself the first time to learn/comment so now I copied your code without change. Result: no change. 9. Checked the errata sheet again - nothing until chapter 3. In short, I followed the steps and the code is the same as your code and still no success. Up to this point, all of the code has worked using NetBeans 8.0.1. Only with this code did I copy the code to htdoc and edit using Notepad++ when it didn't work in NetBeans. In Notepad++, I selected 'PHP' as the language. I'd attach the files but don't see the capability; however, they're the files from phpmysql4_scripts.zip. Help... In advance - thank you! Nicholas.
×
×
  • Create New...