Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 March 17th, 2005, 12:21 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php setup issue

Hi, I am new to php, and have been workin gthrough beginning php4. Previous attempts have gone fine. am up to page 100 now. Have now hit a snag with my installation of php4. Unlike if I uypload to a real server and view the file, my local one displays part of the php thus: (u may notice i altered some text but that should be fine ;>):

; echo "Loan amount we will allow:$LoanAllowance"

; if ($Loan <= $LoanAllowance) echo "Yes, $FirstName $LastName, we are delighted to accept your application"; if ($Loan > $LoanAllowance) echo "No, $FirstName $LastName, you are taking the piss. Get stuffed, numbnuts"; ?>

Any suggestions as to what my local installation is up to? I have tried installing php 4 and 5 now from www.php.net but neither have solved it, merely clogged my hdd up with extra dlls. Wehay! :(
Any help would be appreciated
I am still using a local server rather than remote, out of ease of use and because my web host charges for mysql which i hope to get onto eventually!

By the way: here is the entire php:
<html>
<head></head>
<body>
<b>Namllu Credit Bank Loan Application Form</b>
<br>
<br>
<?
$SalaryAllowance = $Salary/5;
$AgeAllowance = ($Age/10 - ($Age%10)/10)-1;
$LoanAllowance = $SalaryAllowance * $AgeAllowance;
echo "Loan wanted:$Loan"<br>;
echo "Loan amount we will allow:$LoanAllowance"<br><br>;

if ($Loan <= $LoanAllowance) echo "Yes, $FirstName $LastName, we are delighted to accept your application";
if ($Loan > $LoanAllowance) echo "No, $FirstName $LastName, you are taking the piss. Get stuffed, numbnuts";
?>
</body>
</html>

 
Old March 17th, 2005, 01:01 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok I have now solved this particular issue, but now all i get regardless of what i enter into the form is :

Namllu Credit Bank Loan Application Form

Loan wanted:
Loan amount we will allow:0

Yes, , we are delighted to accept your application



I am presuming this is something to do with the post form....?

 
Old March 27th, 2005, 10:11 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You are having problems with register_globals.
Read up on it here: http://www.google.com/search?q=regis...e:p2p.wrox.com

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old March 27th, 2005, 01:10 PM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah thank you for that. I have had a quick look and see how this has caused problems.
I may track down a newer book soon so I don't have to convert the old style to the new. I'd rather learn the new straight up ideally.
Thanks again
Alex






Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue building a Setup project in vs2005 burwelj Visual Studio 2005 1 April 17th, 2008 12:08 PM
setup for php application for client viztech PHP How-To 0 October 10th, 2007 12:38 AM
setup database connection include file in PHP crmpicco PHP Databases 2 September 30th, 2007 04:18 PM
PHP SETUP PROBLEM pallone Beginning PHP 5 July 8th, 2007 09:55 PM
Web SetUp Project Issue vivek27 ASP.NET 2.0 Professional 1 July 28th, 2006 05:38 AM





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