Forum Moderators: coopster
<!- The name of this page is buynow.php4 -->
<html>
<body>
<?php
if ($ProductID=4) {
echo "Congratulation, records were found!";
} else {
echo "Sorry, no records were found!";
}
?>
</body>
</html>
<!- The name of this page is order_form.html -->
On this page, i have links to:
[example.com...]
[example.com...]
[example...]
My problem is when i click on each of the links above, they all display the same thing "Congratulation, records were found!"
Could someone tell me if there is anything wrong with this code? I am new to PHP, so i am not sure if i am just not using the correct syntax or something. Thank you.
[edited by: jatar_k at 5:10 pm (utc) on Oct. 13, 2004]
[edit reason] generalized urls [/edit]
<html>
<body>
<?php
echo $ProductID;
?>
</body>
</html>
As i suspected, the value wasn't getting passed to buynow.php4. My question is does anyone know why this is? Thank you.