We are using SESSION to pass a value to another php page, which is working great. My question is how to echo a form page depending on the value we collected from the first php page.
In the second php page:
[code=php]
<?php
session_start();
?>
in html:
[code=php]
<?php
if($_SESSION[‘item’] = “Orange”
echo $_SESSION[‘item’];
echo “<form name=”PrePage” method = “post” action = “https://websitepayment.aspx”> <input type = “hidden” name = “LinkId” value =”xxxxxxxxx1″ /> <input type = “image” src =”//content.thewebsite/images/buynow.gif” /></form>”;
elseifif($_SESSION[‘item’] = “Grapes”
echo $_SESSION[‘item’];
echo “<form name=”PrePage” method = “post” action = “https://websitepayment.aspx”> <input type = “hidden” name = “LinkId” value =”xxxxxxxxx2″ /> <input type = “image” src =”//content.thewebsite/images/buynow.gif” /></form>”;
endif;
?>
I can’t get the form to show up :p I have no idea what I am doing! I need the ITEM bolded and the FORM to show below the ITEM. Help!!!
I was going to make separate pages for each items, this will save me a lot of time if I can only get it to work.
TY
Lis