Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2009, 03:16 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default why always happened "parse error: unexpected string"

when I execute file "form3.html" and "formprocess3.php" in chapter 5, form3 works good, but it always has error in line 9 , file "formprocess3.php" in page 170.
I used "php syntax check tool" to check file "formprocess3.php" and get error message " parse error : unexpected string".

Could anyone please check this line in the book or what is the probable problem I did ?
Many thanks!
 
Old June 20th, 2009, 03:19 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[quote=sh746;242801]when I execute file "form3.html" and "formprocess3.php" in chapter 5, form3 works good, but it always has error in line 9 , file "formprocess3.php" in page 170.
I used "php syntax check tool" to check file "formprocess3.php" and get error message " parse error : unexpected string".

Could anyone please check this line in the book or what is the probable problem I did ?
Many thanks![/quote

line 9 is

<title><?php echo $_POST['submit'] . '' . $_POST['type'] . ' : ' .
 
Old July 5th, 2009, 04:39 PM
Registered User
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Type the full code, as you might have an error in the code and just haven't seen it.
Code:
<title><?php echo $_POST['submit'] . ' ' . $_POST['type'] . ': ' . $_POST['name']; ?></title>
make sure the code is like that.

I see where you have gone wrong it isn't a " it should be ' ' in between the $_POST['submit'] . ' ' . $_POST['type'] try that, it should work then, and not give you an error.

Last edited by nightfox; July 5th, 2009 at 04:48 PM.. Reason: added code to show if he has gone wrong anywhere





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in sample code "Professional Codeigniter" langithitam BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 5 November 1st, 2009 06:20 AM
Chapter 2 "An attempt to attach an auto-named database for file.." Gredkins BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 4 May 28th, 2009 11:55 PM
Code not going as planned: "icicle" vs "savedinstancestate" joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 May 3rd, 2009 03:09 PM
Chapter-5 on Intents:ContactPickerTester does not show the button "Pick a Contact" sunilm12 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 April 15th, 2009 11:55 AM
How to download Code in "Professional Active Server Page 3.0 " book. renjith0 All Other Wrox Books 2 April 2nd, 2009 05:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.