Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 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 July 21st, 2003, 01:17 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chpt 3 Please Help Me!

I have just started the book. I am using a Linux Redhat 8.0 OS and httpd server and PHP4. My php pages work by themselves in the previous chapters but now when I have a starting html page and corresponding php page nothing happens. I am taken to the php page by the submit button but no php function results come up, only the html writing - "Who is your favourite author?" The box is empty even thought the url has the answer on the end of it. I have also gone on the next exercise and have the same non-results. Everything else works apart from the php.
I then read this forum and used a declaration script in the php code

<html>
<head></head>
<body>
Your favourite web sites are:
<?php
**$Websites=$_POST[Websites];**
echo $Websites;
?>
</body>
</html>

but my results come out like this:

Your favourite web sites are: http:// http:// http:// http:// **Websites=http:// http:// http:// http://**

(the 2 ** are not in the actually script)

In the terminal it says:

KDirWatch::removeDir can't handle '/var/www/html' - this is my root directory

Have also been told that to turn the Global Register to On is a very bad idea.

Why does it repeat itself? Why without this declaration does it not show up at all? Can you please help.
:(
 
Old July 24th, 2003, 02:51 PM
Registered User
 
Join Date: Jul 2003
Location: athens, , Greece.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi there

i had the same problem with you.

please note that i am using php4 in iis5 and windows 2000 paltform.

the example in page 77 text.html text.php
did not work either.

i left the register_globals off as it was initially in the php.ini file.

and


did the following

in the text.php i wrote this:


<?php
$actor=$_POST["actor"];
echo $actor;
?>

worked fine and then when i tried all the other scripts
 worked fine as well

hope i helped

thanks



 
Old July 24th, 2003, 10:52 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help. I will give it a try.

Cheers.
:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chpt 3 - Connect to SQL Server 2000 Database BennyHill BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 June 7th, 2007 03:30 PM
Chpt 12 Bulk Copy smiller BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 13th, 2007 11:25 PM
Chpt 20 - adding a web reference kco1122 BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 12 September 4th, 2006 12:30 PM
Chpt 6 pg 204-205 harrison4411 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 June 10th, 2006 09:52 AM
Chpt 6 Why Not Try...template & navigation turtle10 Dreamweaver (all versions) 2 September 23rd, 2004 04:14 PM





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