Right from the start.....

I’m at the very start of beginning to learn php and have come to a halt already…lol

I have created two files shown below. When I hit submit from the craft.html page, it knows to open the search results page. I am trying to get it to show the quantity of items ordered from the craft.html page onto the search results page, but it doesn’t seem to want to do that. Anyone know what I am missing. (don’t mind the fact that I’ve named things search results when it is really order form stuff )

craft.html:

[code]

L2Craft

L2Craft

Search Items

Item Quantity
Tires
Oil
Spark Plugs
[/code]

searchresults.php

[code]

Search Results [color=#FF0040]

Search Results>

<? echo "

Search results processed on "; echo date ("F j, h:i"); echo "
";

echo “

Your search results are as follows”;
echo “
”;
echo $tireqty." tires
";
echo $oilqty." bottles of oil
";
echo $sparkqty." spark plugs
";
?>

[/code]

MOD EDIT: Changed color to code tags

I love your creativity with the color tag, but code tags would make things more neat here ;)

As for what you’re missing: it looks like you’re expecting register_globals to be enabled. You’ll need to retrieve the data from your form in the $_POST superglobal:
$_POST[‘tireqty’] etc.

Sponsor our Newsletter | Privacy Policy | Terms of Service