hello all
I recently installed PHP on my XP pro and my Win 2000 server systems.
I know nothing about php, 0% and i`m having a big problem . the book i`m using is PHP and Mysql Web Development. the book came with a CD that i`m using also and apache and php binaries and various sources..
I didn`t use the binaries that came with teh book. I downloaded php 4.3.2 and apache2 for XP and apache 1.3.9 i think i installed apache 2 on XP and apache 1.3.9 i think it was on the Win2000 server system....
now everything works i created the <? phpinfo() ?> and the the info page..
Now as I was goin tru this book i came across this:
Code: Select all
<form action="processorder.php" method=post>
<table border=0>
<tr bgcolor=#cccccc>
<td width=150>Item</td>
<td width=15>Quantity</td>
</tr>
<tr>
<td>Tires</td>
<td align=center><input type="text" name="tireqty" size=3
maxlength=3></td>
</tr>
<tr>
<td>Oil</td>
<td align=center><input type="text" name="oilqty" size=3 maxlength=3></td> </tr> <tr>
<td>Spark Plugs</td>
<td align=center><input type="text" name="sparkqty" size=3
maxlength=3></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="Submit Order"></td> </tr>
</table>
</form>Code: Select all
<html>
<head>
<title>Bobs Auto parts</title>
</head>
<body>
<h1>Bobs Auto Parts</h1>
<h2>Order Results</h2>
<?
echo "<p>Order processed.";
echo date("H:i, jS F");
echo "<br>";
echo "<p>Your order is as follows:";
echo "<br>";
echo $tireqty." tires<br>";
echo $oilqty." bottles of oil<br>";
echo $sparkqty." spark plugs<br>";
?>
</body>
</html>i`m newbie but i figure that on the page that has the form and numbers are typed in the quantity field for the amounts or whatever the individual wants and you should be able to see these once u submit it and the output page comes up..I am not getting anything all i`m seeing is:
Bobs Auto Parts
Order results
Your order is as follows:
tires
bottles of oil
spark plugs
but as u can see they are no amounts infront of tire, bottles of oil or
spark plugs and i typed the number 2 in all three fields but it wasn`t echoed to the output page..
I tried it on the XP Pro OS system running php 4.3.2 and apache2
& on a windows 2000 server OS running php 4.3.2 and apache 1.3.9 ..
I have since found out that this was something to do with register_globals bein off, but i turned it on and later found out that its off by default and its that way because of security reasons.. is there a work around for this?
remember i know nothing about php so could u explain so that i could understant it please....also i want to continue is the book any good? was it incorrect in anyway
I neeed Help ..would like to learn php....it suxs bein stuck and i haven`t even begun building anything yet..